Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify and Fix Handling of Test Content #17590

Merged

Conversation

anthony-murphy
Copy link
Contributor

The serialization tests were incorrectly creating the path for the text content, and not running locally. this change unifies how we create paths for test content, and will fail if the test content doesn't exist in automation.

@github-actions github-actions bot added area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch labels Oct 2, 2023
@@ -146,8 +147,6 @@ export async function processOneNode(args: IWorkerArgs) {
export async function processContent(mode: Mode, concurrently = true) {
const limiter = new ConcurrencyLimiter(numberOfThreads);

ensureTestCollateralPath();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is redundant, getFileLocations fails if it doesn't find the content

@anthony-murphy anthony-murphy requested a review from a team as a code owner October 2, 2023 21:02
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Oct 2, 2023
@msfluid-bot
Copy link
Collaborator

Baseline CI build failed, cannot generate bundle analysis at this time


Baseline commit: 91145a7

Generated by 🚫 dangerJS against fd3bc78

@connorskees
Copy link
Member

Seems fine to me. Previously, it wasn't possible to run part of the snapshot tests locally?

@anthony-murphy
Copy link
Contributor Author

Seems fine to me. Previously, it wasn't possible to run part of the snapshot tests locally?

yeah. when i tried to run packages/test/snapshots/src/test/serialized.spec.ts, they just skipped themselves due to bad path construction.

@anthony-murphy anthony-murphy merged commit dcf68cd into microsoft:main Oct 3, 2023
28 checks passed
@anthony-murphy anthony-murphy deleted the fix-serialization-test branch October 3, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants