Skip to content

Commit

Permalink
tc
Browse files Browse the repository at this point in the history
  • Loading branch information
clee2000 committed Nov 6, 2024
1 parent dcfc011 commit 4bc9d14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions torchci/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ function NavBar() {
name: "Testing Overhead",
href: "/testing_overhead",
},
{
name: "Cost Analysis",
href: "/cost_analysis",
},
];

return (
Expand Down
8 changes: 0 additions & 8 deletions torchci/test/retryBot.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as jobUtils from "lib/jobUtils";
import nock from "nock";
import { Probot } from "probot";
import myProbotApp from "../lib/bot/retryBot";
Expand All @@ -14,9 +13,6 @@ describe("retry-bot", () => {
beforeEach(() => {
probot = utils.testProbot();
probot.load(myProbotApp);
nock("https://api.github.com")
.post("/app/installations/2/access_tokens")
.reply(200, { token: "test" });
});

afterEach(() => {
Expand Down Expand Up @@ -68,7 +64,6 @@ describe("retry-bot", () => {
const workflow_jobs = requireDeepCopy("./fixtures/workflow_jobs.json");
workflow_jobs.jobs[0].conclusion = "failure";


const owner = event.payload.repository.owner.login;
const repo = event.payload.repository.name;
const attempt_number = event.payload.workflow_run.run_attempt;
Expand Down Expand Up @@ -109,7 +104,6 @@ describe("retry-bot", () => {
workflow_jobs.jobs[4].conclusion = "failure";
workflow_jobs.jobs[4].steps[0].conclusion = "failure";


const owner = event.payload.repository.owner.login;
const repo = event.payload.repository.name;
const attempt_number = event.payload.workflow_run.run_attempt;
Expand Down Expand Up @@ -150,7 +144,6 @@ describe("retry-bot", () => {
workflow_jobs.jobs[4].conclusion = "failure";
workflow_jobs.jobs[4].steps[0].conclusion = "failure";


const owner = event.payload.repository.owner.login;
const repo = event.payload.repository.name;
const attempt_number = event.payload.workflow_run.run_attempt;
Expand Down Expand Up @@ -192,7 +185,6 @@ describe("retry-bot", () => {
const attempt_number = event.payload.workflow_run.run_attempt;
const run_id = event.payload.workflow_run.id;
const prev_run_id = 1;
// 2 out of 3 previous jobs are flaky

const scope = nock("https://api.github.com")
.get(
Expand Down

0 comments on commit 4bc9d14

Please sign in to comment.