Publish curated projectbrain source from 88fab8df1542019289e947f092c2b387e0825c60
This commit is contained in:
1 parent
48e72d07e0
commit
eca2891b07
45 files changed
+2697
-328
No files matched your search
@@ -15,9 +15,9 @@ const actionRun = (input: {
|
||||
}): GiteaActionRun => ({
|
||||
id: input.id,
|
||||
run_number: input.id,
|
||||
display_title: input.workflow ?? "CI",
|
||||
path: `.gitea/workflows/${input.workflow ?? "ci.yml"}`,
|
||||
event: "push",
|
||||
display_title: input.workflow ?? "Managed validation / full",
|
||||
path: `.gitea/workflows/${input.workflow ?? "managed-validation.yml"}`,
|
||||
event: input.workflow ? "pull_request" : "workflow_dispatch",
|
||||
head_sha: input.headSha ?? "current-sha",
|
||||
head_branch: "chatgpt/feature",
|
||||
status: input.status ?? "completed",
|
||||
@@ -46,6 +46,7 @@ describe("review remediation regressions", () => {
|
||||
|
||||
it("still fails closed when the latest run of any workflow is not successful", () => {
|
||||
expect(() => assertSuccessfulActionRuns([
|
||||
actionRun({ id: 9, conclusion: "success" }),
|
||||
actionRun({ id: 10, conclusion: "success", workflow: "quality.yml" }),
|
||||
actionRun({ id: 11, conclusion: "failure", workflow: "security.yml" }),
|
||||
], "chatgpt/feature", "current-sha")).toThrow("FEATURE_DELIVERY_CI_NOT_SUCCESSFUL");
|
||||
@@ -53,7 +54,7 @@ describe("review remediation regressions", () => {
|
||||
expect(() => assertSuccessfulActionRuns([
|
||||
actionRun({ id: 12, conclusion: "success" }),
|
||||
actionRun({ id: 13, conclusion: "", status: "in_progress" }),
|
||||
], "chatgpt/feature", "current-sha")).toThrow("FEATURE_DELIVERY_CI_NOT_SUCCESSFUL");
|
||||
], "chatgpt/feature", "current-sha")).toThrow("FEATURE_DELIVERY_FULL_VALIDATION_REQUIRED");
|
||||
});
|
||||
|
||||
it("rejects shipped placeholder credentials in production", () => {
|
||||
|
||||
Reference in new issue
Block a user