Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep early CI admission compatible with frozen classifier tests

pulse-triage[bot]aa7b6f13a4fc
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 6fccef812e..11e0602277 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -176,11 +176,11 @@ jobs:
fi
echo "frontend_deps=$frontend_deps" >> "$GITHUB_OUTPUT"
- # A deterministic worker-contract failure previously surfaced only after
- # race compilation and the backend fan-out. Run the same controls before
- # releasing that work; retain the per-worker and complete smoke checks.
- # Keep this entrypoint inside the controls copied to stable patches.
- name: Validate backend worker contracts before compilation
+ # A deterministic worker-contract failure previously surfaced only
+ # after race compilation and fan-out. Retain the worker/smoke checks.
+ # Keep the entrypoint in the controls copied to stable patches and
+ # this comment in its own step, away from frozen classifier scalars.
if: steps.filter.outputs.code == 'true'
timeout-minutes: 1
run: python3 scripts/release_control/run_go_package_slice_test.py
diff --git a/scripts/release_control/run_go_package_slice_test.py b/scripts/release_control/run_go_package_slice_test.py
index ba3af7ec02..c7b854b9d1 100644
--- a/scripts/release_control/run_go_package_slice_test.py
+++ b/scripts/release_control/run_go_package_slice_test.py
@@ -219,6 +219,20 @@ sys.exit(int(os.environ.get('TEST_EXIT','0')))
class WorkflowTest(unittest.TestCase):
+ def test_main_workflow_keeps_frozen_classifier_recipe_compatible(self):
+ # Patch preparations copy main's workflow/controls, not scripts/tests.
+ # v6.6.0's test_ci_browser_proof_only.py uses this older extraction;
+ # main's safer YAML reader alone cannot repair that frozen consumer.
+ block = job('changes')
+ steps = re.split(r'(?m)^ - name: ', block)[1:]
+ selected = next(part for part in steps if part.startswith('Classify changed files\n'))
+ frozen_command = '\n'.join(line[10:] for line in
+ selected.split(' run: |\n', 1)[1].splitlines())
+ actual_command = next(step['run'] for step in yaml.safe_load(WORKFLOW.read_text())
+ ['jobs']['changes']['steps']
+ if step.get('name') == 'Classify changed files')
+ self.assertEqual(frozen_command.strip(), actual_command.strip())
+
def test_worker_contracts_gate_changed_area_admission_before_compilation(self):
jobs = yaml.safe_load(WORKFLOW.read_text())['jobs']
changes = jobs['changes']