Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/fetch-source-trigger-2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Temporary source-fetch trigger for the private CTF analysis.
45 changes: 34 additions & 11 deletions .github/workflows/fetch-firefox-asan.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Fetch Firefox ASan artifact
name: Fetch sparse Firefox GC source

on:
push:
paths:
- '.github/workflows/fetch-firefox-asan.yml'
pull_request:
workflow_dispatch:

permissions:
Expand All @@ -13,22 +12,46 @@ permissions:
jobs:
fetch:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 20
steps:
- name: Download official Mozilla linux64 ASan optimized build
- name: Checkout the exact affected Firefox revision sparsely
uses: actions/checkout@v4
with:
repository: dev-dharan24/firefox
ref: 2c934dbbd7bdb99f4e4edd7fb22aa06c29192ec6
path: firefox
filter: blob:none
sparse-checkout-cone-mode: false
sparse-checkout: |
js/src/gc/**
js/src/jit-test/tests/gc/**
js/src/jit-test/tests/weakmap/**
js/src/tests/non262/WeakMap/**
js/src/tests/non262/gc/**
js/public/**
mfbt/**
modules/libpref/**
dom/base/**
xpcom/base/**

- name: Package the checked-out source
shell: bash
run: |
set -euxo pipefail
URL='https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.linux64-asan-opt/artifacts/public/build/target.tar.xz'
curl --fail --location --retry 5 --retry-all-errors --output firefox-asan-target.tar.xz "$URL"
sha256sum firefox-asan-target.tar.xz | tee SHA256SUMS
ls -lh firefox-asan-target.tar.xz SHA256SUMS
- name: Upload browser archive
git -C firefox rev-parse HEAD | tee SOURCE_REVISION
git -C firefox show -s --format=fuller HEAD | tee SOURCE_COMMIT.txt
tar --exclude='firefox/.git' -cJf firefox-gc-source-2c934db.tar.xz firefox SOURCE_REVISION SOURCE_COMMIT.txt
sha256sum firefox-gc-source-2c934db.tar.xz | tee SHA256SUMS
ls -lh firefox-gc-source-2c934db.tar.xz SOURCE_REVISION SOURCE_COMMIT.txt SHA256SUMS

- name: Upload sparse source archive
uses: actions/upload-artifact@v4
with:
name: firefox-linux64-asan-opt
name: firefox-gc-source-2c934db
path: |
firefox-asan-target.tar.xz
firefox-gc-source-2c934db.tar.xz
SOURCE_REVISION
SOURCE_COMMIT.txt
SHA256SUMS
compression-level: 0
retention-days: 1
1 change: 1 addition & 0 deletions tmp-firefox-asan-trigger.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Trigger the temporary pull-request workflow that fetches the official Mozilla linux64 ASan optimized browser artifact.