From aac446c4893501dd785839254c63005a02559dbc Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 10:28:58 -0400 Subject: [PATCH 1/5] Update [ghstack-poisoned] --- .github/workflows/runtime_build_and_test.yml | 76 ++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index a90a983cbce04..99613e6043f4d 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -312,3 +312,79 @@ jobs: - name: Display structure of build run: ls -R build - run: yarn check-release-dependencies + + # ----- DEVTOOLS ----- + build_devtools_and_process_artifacts: + name: Build DevTools and process artifacts + needs: build_and_lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.20.1 + 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: ./scripts/circleci/pack_and_store_devtools_artifacts.sh + env: + RELEASE_CHANNEL: experimental + - name: Display structure of build + run: ls -R build + - name: Archive devtools build + uses: actions/upload-artifact@v4 + with: + name: devtools.tgz + path: build + # Simplifies getting the extension for local testing + - name: Archive chrome extension + uses: actions/upload-artifact@v4 + with: + name: chrome-extension.zip + path: ./build/devtools/ + - name: Archive firefox extension + uses: actions/upload-artifact@v4 + with: + name: firefox-extension.zip + path: ./build/devtools/ + + run_devtools_e2e_tests: + name: Run DevTools e2e tests + needs: build_devtools_and_process_artifacts + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.20.1 + 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: | + npx playwright install + sudo npx playwright install-deps + - run: ./scripts/circleci/run_devtools_e2e_tests.js + env: + RELEASE_CHANNEL: experimental From f56198514c6c79933f05b17bbe93b52fbe509dc2 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 11:37:56 -0400 Subject: [PATCH 2/5] Update [ghstack-poisoned] --- .github/workflows/runtime_build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 99613e6043f4d..209fbaf194a54 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -346,7 +346,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: devtools.tgz - path: build + path: build/devtools # Simplifies getting the extension for local testing - name: Archive chrome extension uses: actions/upload-artifact@v4 From d6e915d1383e4f0b8d4baeefc81e3a4ec332302f Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 11:42:42 -0400 Subject: [PATCH 3/5] Update [ghstack-poisoned] --- .github/workflows/runtime_build_and_test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 209fbaf194a54..46bc22a3a1fc5 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -346,18 +346,18 @@ jobs: uses: actions/upload-artifact@v4 with: name: devtools.tgz - path: build/devtools + path: build/devtools/devtools.tgz # Simplifies getting the extension for local testing - name: Archive chrome extension uses: actions/upload-artifact@v4 with: - name: chrome-extension.zip - path: ./build/devtools/ + name: react-devtools-chrome-extension + path: build/devtools/chrome-extension.zip - name: Archive firefox extension uses: actions/upload-artifact@v4 with: - name: firefox-extension.zip - path: ./build/devtools/ + name: react-devtools-firefox-extension + path: build/devtools/firefox-extension.zip run_devtools_e2e_tests: name: Run DevTools e2e tests From 6541a25c3ad4d41f7835c751ea23d42d89b669d8 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 11:53:32 -0400 Subject: [PATCH 4/5] Update [ghstack-poisoned] --- .github/workflows/runtime_build_and_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 46bc22a3a1fc5..e5d70f92721e7 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -345,8 +345,8 @@ jobs: - name: Archive devtools build uses: actions/upload-artifact@v4 with: - name: devtools.tgz - path: build/devtools/devtools.tgz + name: react-devtools.tgz + path: build/devtools.tgz # Simplifies getting the extension for local testing - name: Archive chrome extension uses: actions/upload-artifact@v4 From 399a4dd111c92df988bdd3ff73d28947310463cd Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 16 Jul 2024 12:11:40 -0400 Subject: [PATCH 5/5] Update [ghstack-poisoned] --- .github/workflows/runtime_build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index e5d70f92721e7..1f107dc33d50f 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -345,7 +345,7 @@ jobs: - name: Archive devtools build uses: actions/upload-artifact@v4 with: - name: react-devtools.tgz + name: react-devtools path: build/devtools.tgz # Simplifies getting the extension for local testing - name: Archive chrome extension