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

Forbid ".only" in CI builds #11535

Merged
merged 6 commits into from Aug 16, 2022
Merged

Conversation

Abe27342
Copy link
Contributor

@Abe27342 Abe27342 commented Aug 12, 2022

Description

The general idea here is to conditionally include the --forbid-only flag in our mocha config based on an env variable we inject in our pipeline. Most packages don't actually currently depend on the mocharc-common file in @fluidframework/mocha-test-setup, so this adds .mocharc.js files to all of the client packages that contain tests. I didn't modify existing setups for packages that already have .mocharc.js files (there were only a couple), nor the one for PropertyDDS (it uses mocharc.json with what appears to be slightly tweaked config; I'll let developers of that package decide what they want to do).

A sample run where I injected a bad .only can be found here.

@github-actions github-actions bot added the base: main PRs targeted against main branch label Aug 12, 2022
@github-actions github-actions bot added the area: dds Issues related to distributed data structures label Aug 12, 2022
@github-actions github-actions bot added area: build Build related issues area: tests Tests to add, test infrastructure improvements, etc labels Aug 15, 2022
@github-actions github-actions bot removed the area: dds Issues related to distributed data structures label Aug 16, 2022
@Abe27342 Abe27342 marked this pull request as ready for review August 16, 2022 17:32
@Abe27342 Abe27342 requested review from a team as code owners August 16, 2022 17:32
@Abe27342 Abe27342 merged commit 25d32ce into microsoft:main Aug 16, 2022
@Abe27342 Abe27342 deleted the forbid-only-in-ci branch August 16, 2022 18:19
@github-actions
Copy link
Contributor

This commit is queued for merging with the next branch! Please ignore this PR for now. Contact @microsoft/fluid-cr-infra for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues area: tests Tests to add, test infrastructure improvements, etc base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants