























@@ -578,16 +578,8 @@ describe("ci workflow guards", () => {
578578const publishJob = maturityWorkflow.jobs.publish;
579579const qaRunJob = qaEvidenceWorkflow.jobs.run_qa_profile;
580580581-expect(qaEvidenceWorkflow.on.workflow_dispatch.inputs.fail_on_qa_failure).toEqual({
582-description: "Fail the workflow when the QA profile command exits non-zero",
583-required: false,
584-default: true,
585-type: "boolean",
586-});
587-expect(qaEvidenceWorkflow.on.workflow_call.inputs.fail_on_qa_failure).toMatchObject({
588-default: false,
589-type: "boolean",
590-});
581+expect(qaEvidenceWorkflow.on.workflow_dispatch.inputs).not.toHaveProperty("fail_on_qa_failure");
582+expect(qaEvidenceWorkflow.on.workflow_call.inputs).not.toHaveProperty("fail_on_qa_failure");
591583expect(qaEvidenceWorkflow.on.workflow_dispatch.inputs.qa_profile).not.toHaveProperty("options");
592584expect(qaEvidenceWorkflow.on.workflow_call.inputs.qa_profile.type).toBe("string");
593585const validateProfileStep = qaRunJob.steps.find(
@@ -602,8 +594,8 @@ describe("ci workflow guards", () => {
602594expect(generateJob.with).toMatchObject({
603595ref: "${{ needs.validate_selected_ref.outputs.selected_revision }}",
604596qa_profile: "all",
605-fail_on_qa_failure: false,
606597});
598+expect(generateJob.with).not.toHaveProperty("fail_on_qa_failure");
607599608600const generatedDownloadStep = publishJob.steps.find(
609601(step) => step.name === "Download generated QA evidence artifact",
@@ -643,10 +635,8 @@ describe("ci workflow guards", () => {
643635"if-no-files-found": "error",
644636});
645637646-const qaFailStep = qaRunJob.steps.find(
647-(step) => step.name === "Fail if configured QA gate failed",
648-);
649-expect(qaFailStep.if).toBe("always() && inputs.fail_on_qa_failure");
638+const qaFailStep = qaRunJob.steps.find((step) => step.name === "Fail if QA profile failed");
639+expect(qaFailStep.if).toBe("always()");
650640});
651641652642it("keeps workflow guards in fast CI-routing checks", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。