From 490e1b8b337aedbe73c2b3f9f10a2061ff640298 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 24 Jun 2024 17:13:58 -0400 Subject: [PATCH 1/4] Update [ghstack-poisoned] --- .github/workflows/runtime_build.yml | 26 ++++++++++++++++++++++++++ scripts/rollup/stats.js | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build.yml b/.github/workflows/runtime_build.yml index ed3a7074230cc..02e79fc3e4827 100644 --- a/.github/workflows/runtime_build.yml +++ b/.github/workflows/runtime_build.yml @@ -51,6 +51,8 @@ jobs: key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} - run: yarn install --frozen-lockfile - run: yarn build --b=${{ matrix.bundle_type }} --r=${{ matrix.release_channel }} --ci=github + env: + CI: github - name: Archive build uses: actions/upload-artifact@v4 with: @@ -85,3 +87,27 @@ jobs: name: ${{ matrix.bundle_type }}_${{ matrix.release_channel }} - run: yarn install --frozen-lockfile - run: yarn lint-build + + process_artifacts_combined: + name: yarn lint-build + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Restore archived build + uses: actions/download-artifact@v4 + with: + path: build + merge-multiple: true + - run: echo ${{ github.sha }} >> build/COMMIT_SHA + # Compress build directory into a single tarball for easy download + - run: tar -zcvf ./build.tgz ./build + # TODO: Migrate scripts to use `build` directory instead of `build2` + - run: cp ./build.tgz ./build2.tgz + - name: Archive build artifacts + uses: actions/upload-artifact@v4 + with: + name: combined_artifacts_${{ github.sha }} + path: | + ./build.tgz + ./build2.tgz diff --git a/scripts/rollup/stats.js b/scripts/rollup/stats.js index 5a5b376c8b1a2..b3fe94ef78eca 100644 --- a/scripts/rollup/stats.js +++ b/scripts/rollup/stats.js @@ -18,7 +18,7 @@ const currentBuildResults = { }; function saveResults() { - if (process.env.CIRCLE_NODE_TOTAL) { + if (process.env.CIRCLE_NODE_TOTAL || process.env.CI === 'github') { // In CI, write the bundle sizes to a subdirectory and append the node index // to the filename. A downstream job will consolidate these into a // single file. From f7080cce57d983d242175cefe8c9342538b2fcee Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 24 Jun 2024 17:15:40 -0400 Subject: [PATCH 2/4] Update [ghstack-poisoned] --- .github/workflows/runtime_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build.yml b/.github/workflows/runtime_build.yml index 02e79fc3e4827..056cd56da804e 100644 --- a/.github/workflows/runtime_build.yml +++ b/.github/workflows/runtime_build.yml @@ -89,7 +89,7 @@ jobs: - run: yarn lint-build process_artifacts_combined: - name: yarn lint-build + name: Process artifacts combined needs: build runs-on: ubuntu-latest steps: From 8df55af77e4480faf54dc58b010bec7f98ffd164 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 24 Jun 2024 17:18:12 -0400 Subject: [PATCH 3/4] Update [ghstack-poisoned] --- .github/workflows/runtime_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build.yml b/.github/workflows/runtime_build.yml index 056cd56da804e..bfde602a806b9 100644 --- a/.github/workflows/runtime_build.yml +++ b/.github/workflows/runtime_build.yml @@ -100,7 +100,7 @@ jobs: path: build merge-multiple: true - run: echo ${{ github.sha }} >> build/COMMIT_SHA - # Compress build directory into a single tarball for easy download + # Compress build directory into a single tarball for easy download - run: tar -zcvf ./build.tgz ./build # TODO: Migrate scripts to use `build` directory instead of `build2` - run: cp ./build.tgz ./build2.tgz From ed1881ff8fcafc2761d32c23cee170effd732923 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 10 Jul 2024 13:11:09 -0400 Subject: [PATCH 4/4] Update [ghstack-poisoned] --- .github/workflows/runtime_build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/runtime_build.yml b/.github/workflows/runtime_build.yml index 243981be734e9..267f1e86dd3b0 100644 --- a/.github/workflows/runtime_build.yml +++ b/.github/workflows/runtime_build.yml @@ -52,12 +52,28 @@ jobs: 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 - name: Restore archived build uses: actions/download-artifact@v4 with: path: build merge-multiple: true - run: echo ${{ github.sha }} >> build/COMMIT_SHA + - name: Scrape warning messages + run: | + mkdir -p ./build/__test_utils__ + node ./scripts/print-warnings/print-warnings.js > build/__test_utils__/ReactAllWarnings.js # Compress build directory into a single tarball for easy download - run: tar -zcvf ./build.tgz ./build # TODO: Migrate scripts to use `build` directory instead of `build2`