From 7e1c17b52b0b57b0d12557b7fb17619a636cefb2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Jul 2025 21:11:50 +0000 Subject: [PATCH 1/6] Initial plan From 4b434e7e2a67a1b24350c128f204f0511b176994 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 14 Jul 2025 21:17:10 +0000 Subject: [PATCH 2/6] Add weekly build workflow to run builds automatically once per week Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> --- .github/workflows/weekly-build.yml | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/weekly-build.yml diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml new file mode 100644 index 00000000..d8b16c2b --- /dev/null +++ b/.github/workflows/weekly-build.yml @@ -0,0 +1,56 @@ +name: Weekly Build + +on: + schedule: + # Run every Sunday at midnight UTC (0 0 * * 0) + - cron: '0 0 * * 0' + # Allow manual triggering for testing + workflow_dispatch: + +jobs: + build: + name: Weekly Build + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + target: x86_64-pc-windows-msvc + - os: windows-latest + target: aarch64-pc-windows-msvc + - os: ubuntu-latest + target: x86_64-unknown-linux-musl + # - os: ubuntu-latest + # target: aarch64-unknown-linux-gnu + # - os: ubuntu-latest + # target: arm-unknown-linux-gnueabihf + - os: macos-latest + target: x86_64-apple-darwin + - os: macos-14 + target: aarch64-apple-darwin + # - os: ubuntu-latest + # target: x86_64-unknown-linux-gnu + # - os: ubuntu-latest + # target: aarch64-unknown-linux-musl + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Rust Tool Chain setup + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + targets: ${{ matrix.target }} + + - name: Cargo Fetch + run: cargo fetch + + - name: Build + run: cargo build --release --target ${{ matrix.target }} + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: pet-${{ matrix.target }}-weekly + path: target/${{ matrix.target }}/release/pet* \ No newline at end of file From 059a35abd8e1af55216d7351151fc995032cfd5b Mon Sep 17 00:00:00 2001 From: Eleanor Boyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:44:48 -0700 Subject: [PATCH 3/6] Update .github/workflows/weekly-build.yml --- .github/workflows/weekly-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml index d8b16c2b..87b29f1b 100644 --- a/.github/workflows/weekly-build.yml +++ b/.github/workflows/weekly-build.yml @@ -52,5 +52,5 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: pet-${{ matrix.target }}-weekly + name: pet-${{ matrix.target }} path: target/${{ matrix.target }}/release/pet* \ No newline at end of file From 2f1ffac90fb87529c5cf8e1232ff1f0872d64870 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Jul 2025 15:08:10 +0000 Subject: [PATCH 4/6] Replace GitHub Actions weekly workflow with Azure pipeline schedule Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> --- .github/workflows/weekly-build.yml | 56 ------------------------------ azure-pipelines/pre-release.yml | 9 ++++- 2 files changed, 8 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/weekly-build.yml diff --git a/.github/workflows/weekly-build.yml b/.github/workflows/weekly-build.yml deleted file mode 100644 index 87b29f1b..00000000 --- a/.github/workflows/weekly-build.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Weekly Build - -on: - schedule: - # Run every Sunday at midnight UTC (0 0 * * 0) - - cron: '0 0 * * 0' - # Allow manual triggering for testing - workflow_dispatch: - -jobs: - build: - name: Weekly Build - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - include: - - os: windows-latest - target: x86_64-pc-windows-msvc - - os: windows-latest - target: aarch64-pc-windows-msvc - - os: ubuntu-latest - target: x86_64-unknown-linux-musl - # - os: ubuntu-latest - # target: aarch64-unknown-linux-gnu - # - os: ubuntu-latest - # target: arm-unknown-linux-gnueabihf - - os: macos-latest - target: x86_64-apple-darwin - - os: macos-14 - target: aarch64-apple-darwin - # - os: ubuntu-latest - # target: x86_64-unknown-linux-gnu - # - os: ubuntu-latest - # target: aarch64-unknown-linux-musl - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Rust Tool Chain setup - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: ${{ matrix.target }} - - - name: Cargo Fetch - run: cargo fetch - - - name: Build - run: cargo build --release --target ${{ matrix.target }} - - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: pet-${{ matrix.target }} - path: target/${{ matrix.target }}/release/pet* \ No newline at end of file diff --git a/azure-pipelines/pre-release.yml b/azure-pipelines/pre-release.yml index 87290ae2..f92acca3 100644 --- a/azure-pipelines/pre-release.yml +++ b/azure-pipelines/pre-release.yml @@ -1,8 +1,15 @@ -# Run on a schedule +# Run on a schedule and weekly trigger: branches: include: - main +schedules: + - cron: "0 0 * * 0" + displayName: Weekly build + branches: + include: + - main + always: true pr: none resources: From 056706b42a12f0317311d638ae5ac4bbefaae454 Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:49:48 -0800 Subject: [PATCH 5/6] comment update --- azure-pipelines/pre-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/pre-release.yml b/azure-pipelines/pre-release.yml index f92acca3..198e1bc8 100644 --- a/azure-pipelines/pre-release.yml +++ b/azure-pipelines/pre-release.yml @@ -1,4 +1,4 @@ -# Run on a schedule and weekly +# Run on both a schedule and weekly trigger: branches: include: From 40e1aa25ffbcdbba7b70f1ce89a1524147fc2b97 Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:57:40 -0800 Subject: [PATCH 6/6] formatting --- crates/pet-python-utils/src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/pet-python-utils/src/cache.rs b/crates/pet-python-utils/src/cache.rs index 00b64282..e0575a86 100644 --- a/crates/pet-python-utils/src/cache.rs +++ b/crates/pet-python-utils/src/cache.rs @@ -91,7 +91,7 @@ impl CacheImpl { Entry::Occupied(lock) => lock.get().clone(), Entry::Vacant(lock) => { let cache = Box::new(CacheEntryImpl::create(cache_directory.clone(), executable)) - as Box<(dyn CacheEntry + 'static)>; + as Box; lock.insert(Arc::new(Mutex::new(cache))).clone() } }