-
Notifications
You must be signed in to change notification settings - Fork 217
chore: fix flaky smoke tests on yarn #2764
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
Merged
+104
−32
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
1ab2f6b
chore: add resolutions to smoke tests
AlbinaBlazhko17 a4fe0f6
chore: add overrides
AlbinaBlazhko17 7396cdd
chore: add pnpm overrides
AlbinaBlazhko17 cb57a7c
feat: add scipt to pull current installed version of config
AlbinaBlazhko17 a120ae3
chore: move script into separate file
AlbinaBlazhko17 3e06e62
chore: remove pnpm overrides
AlbinaBlazhko17 e7827c6
feat: add different fix to pack config from node_modules
AlbinaBlazhko17 da20af1
feat: migrate from yarn add to yarn install
AlbinaBlazhko17 1dcd7fb
chore: fix config version script
AlbinaBlazhko17 9fff599
fix: failing smoke tests
AlbinaBlazhko17 2771801
chore: remove packing config
AlbinaBlazhko17 3c5609b
chore: remove --no-lockfile arg
AlbinaBlazhko17 daa1c70
Merge branch 'main' into chore/fix-flaky-smoke-tests
AlbinaBlazhko17 64da1cd
chore: remove letter
AlbinaBlazhko17 0e709bc
feat: add to npm tests the same retry pattern as for yarn
AlbinaBlazhko17 66f5c91
chore: replace with the main
AlbinaBlazhko17 8ff38ce
feat: add pining versions for config and ajv and use only for failed …
AlbinaBlazhko17 54aa739
chore: remove letter
AlbinaBlazhko17 df6eff9
feat: add per job invocation
AlbinaBlazhko17 af87090
feat: add missing pin
AlbinaBlazhko17 b523925
feat: add pining to failed smoke
AlbinaBlazhko17 41e177e
feat: add to failed smoke test pinning
AlbinaBlazhko17 f7c6af9
Merge branch 'main' into chore/fix-flaky-smoke-tests
AlbinaBlazhko17 388d798
feat: add pining to the failed smoke test
AlbinaBlazhko17 bde52ed
feat: remove workaround to test if it works
AlbinaBlazhko17 801cb4a
feat: add to missing smoke test retry pattern
AlbinaBlazhko17 82104c8
chore: remove unused overrides
AlbinaBlazhko17 9fa6b3c
feat: add script to add redoc in packages and use for specific steps
AlbinaBlazhko17 d39f863
chore: remove eval
AlbinaBlazhko17 92985f2
Merge branch 'main' into chore/fix-flaky-smoke-tests
AlbinaBlazhko17 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| node -e " | ||
| const fs = require('fs'); | ||
| const pkgPath = './tests/smoke/basic/package.json'; | ||
| const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); | ||
| (pkg.dependencies ??= {}).redoc = 'latest'; | ||
| fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n'); | ||
| console.log('Added redoc@latest to smoke test dependencies'); | ||
| " |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
|
|
||
| node -e " | ||
| const fs = require('fs'); | ||
| const core = JSON.parse(fs.readFileSync('./packages/core/package.json', 'utf8')); | ||
| const pkgPath = './tests/smoke/basic/package.json'; | ||
| const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); | ||
|
|
||
| const PINNED = ['@redocly/config', '@redocly/ajv']; | ||
|
|
||
| for (const name of PINNED) { | ||
| const version = core.dependencies[name].replace(/^[\^~]/, ''); | ||
| console.log('Pinning ' + name + ' to ' + version + ' in smoke test resolutions'); | ||
| (pkg.resolutions ??= {})[name] = version; | ||
| } | ||
|
|
||
| fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n'); | ||
| " | ||
|
cursor[bot] marked this conversation as resolved.
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.