-
Notifications
You must be signed in to change notification settings - Fork 47.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "[compiler][hir] Correctly remove non-existent terminal pre…
…ds when pruning labels" Missed this initially in `pruneUnusedLabelsHIR`. It wasn't an active bug as `preds` wasn't referenced by later passes, until #30079 [ghstack-poisoned]
- Loading branch information
Showing
60 changed files
with
764 additions
and
608 deletions.
There are no files selected for viewing
This file contains 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
2 changes: 1 addition & 1 deletion
2
.github/workflows/compiler-playground.yml → .github/workflows/compiler_playground.yml
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Compiler Playground | ||
name: (Compiler) Playground | ||
|
||
on: | ||
push: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/compiler-rust.yml → .github/workflows/compiler_rust.yml
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: React Compiler (Rust) | ||
name: (Compiler) Rust | ||
|
||
on: | ||
push: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/compiler-typescript.yml → .github/workflows/compiler_typescript.yml
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: React Compiler (TypeScript) | ||
name: (Compiler) TypeScript | ||
|
||
on: | ||
push: | ||
|
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: DevTools Check for bug repro | ||
name: (DevTools) Check for bug repro | ||
on: | ||
issues: | ||
types: [opened, edited] | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/commit_artifacts.yml → ...ub/workflows/runtime_commit_artifacts.yml
This file contains 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 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,30 @@ | ||
name: (Runtime) Fizz | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
paths-ignore: | ||
- 'compiler/**' | ||
|
||
jobs: | ||
check_generated_fizz_runtime: | ||
name: Confirm generated inline Fizz runtime is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
cache-dependency-path: yarn.lock | ||
- name: Restore cached node_modules | ||
uses: actions/cache@v4 | ||
id: node_modules | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} | ||
- run: yarn install --frozen-lockfile | ||
- run: | | ||
yarn generate-inline-fizz-runtime | ||
git diff --quiet || (echo "There was a change to the Fizz runtime. Run `yarn generate-inline-fizz-runtime` and check in the result." && false) |
2 changes: 1 addition & 1 deletion
2
.github/workflows/flags.yml → .github/workflows/runtime_flags.yml
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Flags | ||
name: (Runtime) Flags | ||
|
||
on: | ||
push: | ||
|
This file contains 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 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 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,85 @@ | ||
name: (Runtime) Test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
paths-ignore: | ||
- 'compiler/**' | ||
|
||
env: | ||
# Number of workers (one per shard) to spawn | ||
SHARD_COUNT: 5 | ||
|
||
jobs: | ||
# Define the various test parameters and parallelism for this workflow | ||
build_test_params: | ||
name: Build test params | ||
runs-on: ubuntu-latest | ||
outputs: | ||
params: ${{ steps.define-params.outputs.result }} | ||
shard_id: ${{ steps.define-shards.outputs.result }} | ||
steps: | ||
- uses: actions/github-script@v7 | ||
id: define-shards | ||
with: | ||
script: | | ||
function range(from, to) { | ||
const arr = []; | ||
for (let n = from; n <= to; n++) { | ||
arr.push(n); | ||
} | ||
return arr; | ||
} | ||
return range(1, process.env.SHARD_COUNT); | ||
- uses: actions/github-script@v7 | ||
id: define-params | ||
with: | ||
script: | | ||
return [ | ||
"-r=stable --env=development", | ||
"-r=stable --env=production", | ||
"-r=experimental --env=development", | ||
"-r=experimental --env=production", | ||
"-r=www-classic --env=development --variant=false", | ||
"-r=www-classic --env=production --variant=false", | ||
"-r=www-classic --env=development --variant=true", | ||
"-r=www-classic --env=production --variant=true", | ||
"-r=www-modern --env=development --variant=false", | ||
"-r=www-modern --env=production --variant=false", | ||
"-r=www-modern --env=development --variant=true", | ||
"-r=www-modern --env=production --variant=true", | ||
"-r=xplat --env=development --variant=false", | ||
"-r=xplat --env=development --variant=true", | ||
"-r=xplat --env=production --variant=false", | ||
"-r=xplat --env=production --variant=true", | ||
// TODO: Test more persistent configurations? | ||
"-r=stable --env=development --persistent", | ||
"-r=experimental --env=development --persistent" | ||
]; | ||
# Spawn a job for each shard for a given set of test params | ||
test: | ||
name: yarn test ${{ matrix.params }} (Shard ${{ matrix.shard_id }}) | ||
runs-on: ubuntu-latest | ||
needs: build_test_params | ||
strategy: | ||
matrix: | ||
params: ${{ fromJSON(needs.build_test_params.outputs.params) }} | ||
shard_id: ${{ fromJSON(needs.build_test_params.outputs.shard_id) }} | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
cache: "yarn" | ||
cache-dependency-path: yarn.lock | ||
- name: Restore cached node_modules | ||
uses: actions/cache@v4 | ||
id: node_modules | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn test ${{ matrix.params }} --ci=github --shard=${{ matrix.shard_id }}/${{ env.SHARD_COUNT }} |
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Lint | ||
name: (Shared) Lint | ||
|
||
on: | ||
push: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/stale.yml → .github/workflows/shared_stale.yml
This file contains 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 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.