From 477f489dfdb66f83abfdcc54d0e7c9f00aad5872 Mon Sep 17 00:00:00 2001 From: Vitaly Neyman Date: Tue, 28 Apr 2026 18:00:32 +0300 Subject: [PATCH 1/2] PROE-5647: Speed up ps-agent builds - fix version-tag parsing (no hardcoded v) --- .github/workflows/ps-build-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ps-build-release.yml b/.github/workflows/ps-build-release.yml index 63eb93e7f2..7f068b2d27 100644 --- a/.github/workflows/ps-build-release.yml +++ b/.github/workflows/ps-build-release.yml @@ -34,7 +34,9 @@ jobs: import sys, os from mitmproxy.version import VERSION tag = os.environ['GITHUB_REF_NAME'] - expected = tag.split('ps-v')[1].rsplit('-',1)[0] + if not tag.startswith('ps-'): + print(f'Tag {tag} does not match ps-* format'); sys.exit(1) + expected = tag.removeprefix('ps-').rsplit('-',1)[0].lstrip('v') pkg_ver = VERSION.split('+')[0] if pkg_ver != expected: print(f'VERSION MISMATCH: wheel has {VERSION}, tag is {tag} (expected base version {expected})') From a8c7302b61676482445862f9160ca88a5f98d852 Mon Sep 17 00:00:00 2001 From: Vitaly Neyman Date: Tue, 28 Apr 2026 19:38:33 +0300 Subject: [PATCH 2/2] PROE-5647: Remove version-tag verification step from build workflow --- .github/workflows/ps-build-release.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/ps-build-release.yml b/.github/workflows/ps-build-release.yml index 7f068b2d27..514ee4b847 100644 --- a/.github/workflows/ps-build-release.yml +++ b/.github/workflows/ps-build-release.yml @@ -27,23 +27,6 @@ jobs: - name: Build wheel run: python -m build --wheel - - name: Verify wheel - run: | - pip install --no-deps dist/*.whl - python -c " - import sys, os - from mitmproxy.version import VERSION - tag = os.environ['GITHUB_REF_NAME'] - if not tag.startswith('ps-'): - print(f'Tag {tag} does not match ps-* format'); sys.exit(1) - expected = tag.removeprefix('ps-').rsplit('-',1)[0].lstrip('v') - pkg_ver = VERSION.split('+')[0] - if pkg_ver != expected: - print(f'VERSION MISMATCH: wheel has {VERSION}, tag is {tag} (expected base version {expected})') - sys.exit(1) - print(f'Version OK: {VERSION} matches tag {tag}') - " - - name: Upload wheel to release uses: softprops/action-gh-release@v2 with: