-
Notifications
You must be signed in to change notification settings - Fork 44
fix(SDK-6463): robust TS config compile in NX monorepos + tolerate a11y afterEach scan timeouts #1131
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
Open
Bhargavi-BS
wants to merge
6
commits into
master
Choose a base branch
from
sdk-6463-nx-tsconfig-and-a11y-afterEach-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+342
−61
Open
fix(SDK-6463): robust TS config compile in NX monorepos + tolerate a11y afterEach scan timeouts #1131
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1314ebb
fix(config): robust TS cypress-config compile in NX monorepos (SDK-6463)
Bhargavi-BS e16768e
fix(a11y): tolerate accessibility scan/save timeouts in afterEach (SD…
Bhargavi-BS 94a33c2
Merge branch 'master' into sdk-6463-nx-tsconfig-and-a11y-afterEach-fixes
Bhargavi-BS 5aec0a0
fix(a11y): rework afterEach — remove invalid cy .catch, make scans al…
Bhargavi-BS 4b14e0f
fix(specs): survive glob/minimatch crash from incompatible brace-expa…
Bhargavi-BS 9b8d34b
Merge pull request #1138 from browserstack/sdk-6463-glob-brace-expans…
Bhargavi-BS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&introduces parallel execution, not sequential-unconditionalProblem
On Windows CMD,
cmd1 & cmd2executes both commands concurrently —cmd2starts immediately without waiting forcmd1to finish. This is the opposite of Unix;, which is strictly sequential.In this context: if
tsc-aliasstarts beforetschas written the compiled.jstotmpBstackCompiledJs/, it processes a not-yet-emitted file — the alias rewrite is a silent no-op, and the compiled config still can't berequire()d.The intent stated in the comment is "run tsc-alias regardless of tsc's exit code, but after tsc completes."
&satisfies "regardless of exit code" but not "after tsc completes."Unix
;(the else branch) is exactly right. Windows&is not the equivalent.Suggested Fix
Replace
&with|| cd.(a no-op fallback that preserves sequencing):Or, if you prefer PowerShell (more readable, avoids CMD-ism):
If you've empirically verified that
&doesn't race in practice (e.g., because CMD buffers background-job start in non-interactive mode), add a code comment documenting that and the warning is acknowledged.Confidence: 🟢 Objectively verifiable — Windows CMD
&operator semantics are documented; the race is reproducible by running both commands in CMD with a slow tsc invocation.