Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci: fail closed on installer certification

Francesco Bonaccidda2be372f93
diff --git a/.github/scripts/tests/test_cua_driver_release_wiring.py b/.github/scripts/tests/test_cua_driver_release_wiring.py
index c775e6a188..5daf8d4091 100644
--- a/.github/scripts/tests/test_cua_driver_release_wiring.py
+++ b/.github/scripts/tests/test_cua_driver_release_wiring.py
@@ -450,6 +450,14 @@ class TestCuaDriverReleaseWiring(unittest.TestCase):
"validate:\n needs: installer-compatibility",
release_metadata,
)
+ self.assertIn(
+ "needs: installer-compatibility\n if: always()",
+ release_metadata,
+ )
+ self.assertIn(
+ 'if [[ "$INSTALLER_CERTIFICATION_RESULT" != "success" ]]',
+ release_metadata,
+ )
def test_lume_uses_the_same_draft_finalizer(self) -> None:
workflow = self.read(".github/workflows/cd-swift-lume.yml")
diff --git a/.github/workflows/ci-release-metadata.yml b/.github/workflows/ci-release-metadata.yml
index 88a2bda2a8..61b5a37989 100644
--- a/.github/workflows/ci-release-metadata.yml
+++ b/.github/workflows/ci-release-metadata.yml
@@ -18,8 +18,18 @@ jobs:
validate:
needs: installer-compatibility
+ if: always()
runs-on: ubuntu-latest
steps:
+ - name: Require successful installer certification
+ env:
+ INSTALLER_CERTIFICATION_RESULT: ${{ needs.installer-compatibility.result }}
+ run: |
+ if [[ "$INSTALLER_CERTIFICATION_RESULT" != "success" ]]; then
+ echo "Installer certification result: $INSTALLER_CERTIFICATION_RESULT" >&2
+ exit 1
+ fi
+
- uses: actions/checkout@v4
with:
fetch-depth: 0