The headless browser for AI agents and web scraping
ci: freeze the release binary before workspace tests
SGavrl196d10c00e8f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 695eeae0..b94ae7a5 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -171,12 +171,13 @@ jobs:- name: Build render releaserun: cargo build --release -p obscura-cli --bins --features render- - name: Test render configuration- run: cargo nextest run --release --features render --no-fail-fast-+ # Workspace tests can rebuild this executable with dev-dependency features.- name: Stage candidate binary for comparisonrun: install -D -m 0755 target/release/obscura "$RUNNER_TEMP/obscura-ci/obscura-pr"+ - name: Test render configuration+ run: cargo nextest run --release --features render --no-fail-fast+- name: Checkout pinned obstacle courseuses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:diff --git a/scripts/ci/test_perf_smoke.py b/scripts/ci/test_perf_smoke.pyindex 3dd7889b..9144ee51 100644--- a/scripts/ci/test_perf_smoke.py+++ b/scripts/ci/test_perf_smoke.py@@ -12,6 +12,17 @@ from unittest.mock import Mock, patchimport perf_smoke+class ShippingArtifactTests(unittest.TestCase):+ def test_candidate_is_staged_before_workspace_test_features_are_enabled(self):+ workflow = (Path(__file__).resolve().parents[2] / ".github/workflows/ci.yml").read_text()+ build = workflow.index("- name: Build render release")+ stage = workflow.index("- name: Stage candidate binary for comparison")+ tests = workflow.index("- name: Test render configuration")+ self.assertLess(build, stage)+ self.assertLess(stage, tests,+ "workspace nextest can overwrite the CLI with dev-dependency features")++class ProcessMeasurementTests(unittest.TestCase):def test_exit_wait_is_not_polled_and_keeps_limits_and_cleanup(self):process = Mock(pid=12345, returncode=0)