-
Notifications
You must be signed in to change notification settings - Fork 236
Update workbench tests to build and run outside of monorepo #1230
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
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8345559
Setup fixes
ijjk e710df7
ci: run local e2e against staged tarball workbenches
ijjk d324048
ci: update staged workbench tarball setup script
ijjk a52553d
chore: set nextjs workbenches back to next 16.1.6
ijjk 09577bc
update lock
ijjk 9aa25f9
test(e2e): resolve workbench path from WORKBENCH_APP_PATH
ijjk 8b0e4e4
fix: address deferred builder issues outside monorepo
ijjk 4b46493
ci: stage tarball workbenches only for nextjs local e2e
ijjk 440502e
fix(next): discover deferred steps imported via workflows
ijjk 701640a
test(core): gate deferred step-discovery dev test to canary
ijjk 75906d3
test(e2e): cover cross-file imported step in build/start lanes
ijjk 5788877
fix(e2e): use local manifest in local runs and relax dev rebuild timeout
ijjk dfc51c2
fix(workbench): add imported-step workflow symlink for sveltekit/astro
ijjk 78a4ad5
test(e2e): scope imported-step workflow test to nextjs lanes
ijjk 2c3e920
fix(next): rebuild deferred entries on discovered file updates
ijjk cddd3c5
fix(next): watch transitive deferred step deps for dev rebuilds
ijjk 248f5a9
fix(next): restore socket-driven deferred step rebuilds
ijjk 0c5c0ea
Merge branch 'main' into ijjk/fix-lazy-test-handling
ijjk e4180da
add changeset
ijjk 0ebec42
chore: address review feedback on deferred e2e updates
ijjk a783ad6
fix(cli): guard stream flush against closed write streams
ijjk 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| "@workflow/builders": patch | ||
| "@workflow/core": patch | ||
| "@workflow/next": patch | ||
| "@workflow/cli": patch | ||
| --- | ||
|
|
||
| Fix deferred build mode for Next.js |
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,33 @@ | ||
| name: 'Prepare Workbench Path' | ||
| description: 'Resolve a workbench path, staging tarball-based Next.js workbenches when needed.' | ||
|
|
||
| inputs: | ||
| app-name: | ||
| description: 'Workbench app name from test matrix' | ||
| required: true | ||
|
|
||
| outputs: | ||
| workbench_app_path: | ||
| description: 'Resolved absolute path to the workbench used by tests' | ||
| value: ${{ steps.prepare.outputs.workbench_app_path }} | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - id: prepare | ||
| shell: bash | ||
| run: | | ||
| if [[ "${{ inputs.app-name }}" == "nextjs-turbopack" || "${{ inputs.app-name }}" == "nextjs-webpack" ]]; then | ||
| STAGE_LOG="$(mktemp)" | ||
| node scripts/stage-workbench-with-tarballs.mjs "workbench/${{ inputs.app-name }}" | tee "$STAGE_LOG" | ||
| WORKBENCH_APP_PATH="$(sed -n 's/^Staged workbench: //p' "$STAGE_LOG" | tail -n 1)" | ||
| if [ -z "$WORKBENCH_APP_PATH" ]; then | ||
| echo "Failed to parse staged workbench path from stage-workbench-with-tarballs output" | ||
| exit 1 | ||
| fi | ||
| else | ||
| ./scripts/resolve-symlinks.sh "workbench/${{ inputs.app-name }}" | ||
| WORKBENCH_APP_PATH="$GITHUB_WORKSPACE/workbench/${{ inputs.app-name }}" | ||
| fi | ||
|
|
||
| echo "workbench_app_path=$WORKBENCH_APP_PATH" >> "$GITHUB_OUTPUT" |
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
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
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.
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.