test(ci): align Crank policy checks with Epic PR routing
CI / UI Checks (pull_request) Successful in 23s
CI / Rust Checks (pull_request) Successful in 1h8m20s
CI / Frontend E2E (pull_request) Failing after 23m32s
CI / Rust Feature Validation (pull_request) Failing after 34m34s
CI / Community Image Smoke (pull_request) Failing after 39m35s
CI / Required Checks (pull_request) Failing after 2s
CI / Deploy (pull_request) Skipped
CI / UI Checks (pull_request) Successful in 23s
CI / Rust Checks (pull_request) Successful in 1h8m20s
CI / Frontend E2E (pull_request) Failing after 23m32s
CI / Rust Feature Validation (pull_request) Failing after 34m34s
CI / Community Image Smoke (pull_request) Failing after 39m35s
CI / Required Checks (pull_request) Failing after 2s
CI / Deploy (pull_request) Skipped
This commit is contained in:
1 parent
ca3fff0f44
commit
e056e1487e
2 files changed
+5
-6
No files matched your search
@@ -156,11 +156,10 @@ class DeployPolicyTests(unittest.TestCase):
|
||||
self.assertIn("default: none", block)
|
||||
self.assertIn("required: true", block)
|
||||
|
||||
def test_push_main_source_ci_stays_enabled(self):
|
||||
self.assertRegex(
|
||||
workflow_text(),
|
||||
r"(?m)^ push:\n branches:\n - main$",
|
||||
)
|
||||
def test_full_ci_targets_main_pull_requests(self):
|
||||
workflow = workflow_text()
|
||||
self.assertRegex(workflow, r"(?m)^ pull_request:\n branches: \[main\]$")
|
||||
self.assertNotRegex(workflow, r"(?m)^ push:")
|
||||
|
||||
def test_deploy_requires_successful_required_checks(self):
|
||||
deploy = job_block("deploy")
|
||||
|
||||
@@ -112,7 +112,7 @@ class WorkflowScopeTests(unittest.TestCase):
|
||||
def test_only_four_heavy_rust_steps_are_skippable(self):
|
||||
workflow = WORKFLOW.read_text(encoding="utf-8")
|
||||
self.assertIn("run: python3 scripts/ci-release-tooling-scope.py", workflow)
|
||||
self.assertIn("FORCE_FULL: ${{ inputs.validation_level == 'feature' || contains(gitea.event.pull_request.labels.*.name, 'feature-ready') }}", workflow)
|
||||
self.assertIn("FORCE_FULL: ${{ gitea.event_name == 'pull_request' || inputs.validation_level == 'feature' }}", workflow)
|
||||
conditional = "if: steps.release_tooling.outputs.ci_only != 'true'"
|
||||
for name in (
|
||||
"Check typed runtime configuration contract",
|
||||
|
||||
Reference in new issue
Block a user