Fix hotpatched assets (#4326)
* wip: fixes to get docsite working again * Fix asset location with PIC in hot patched builds * Add an hidden cli flag to exit early in hot patch tests on failure * add a test for hot patching with assets * fix clippy * fix looks_like_manganis_symbol * longer timeout for hot patching in CI * log page content * log assets * Log asset after write * record a playwright trace * Explicitly enable cargo incremental for hot patching * fix retry for patch test * reset asset * disable hot patching test for new exports * add nightly playwright * use different toolchain names * use beta instead of nightly for less thrashing * add failing test * workaround hot reloading bug * restore swapping asset tests * add toolchain --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
6cc379718b
commit
2071be2b67
20 files changed
+365
-125
No files matched your search
@@ -200,6 +200,11 @@ jobs:
|
||||
if: github.event.pull_request.draft == false
|
||||
name: Playwright Tests
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- { toolchain: 1.86.0 }
|
||||
- { toolchain: beta }
|
||||
steps:
|
||||
# Do our best to cache the toolchain and node install steps
|
||||
- uses: actions/checkout@v4
|
||||
@@ -207,12 +212,13 @@ jobs:
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@1.86.0
|
||||
uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
toolchain: ${{ matrix.platform.toolchain }}
|
||||
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: "playwright-${{ matrix.platform.toolchain }}-${{ runner.os }}"
|
||||
cache-all-crates: "true"
|
||||
cache-on-failure: "true"
|
||||
- name: Wipe dx cache
|
||||
@@ -220,6 +226,9 @@ jobs:
|
||||
rm -rf ./target/dx
|
||||
- name: Playwright
|
||||
working-directory: ./packages/playwright-tests
|
||||
env:
|
||||
# The hot patch test requires incremental compilation
|
||||
CARGO_INCREMENTAL: 1
|
||||
run: |
|
||||
npm ci
|
||||
npm install -D @playwright/test
|
||||
@@ -228,7 +237,7 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
with:
|
||||
name: playwright-report
|
||||
name: playwright-report-${{ matrix.platform.toolchain }}-${{ runner.os }}
|
||||
path: ./packages/playwright-tests/playwright-report/
|
||||
retention-days: 30
|
||||
|
||||
|
||||
Reference in new issue
Block a user