Skip to content

Commit 660d04f

Browse files
committed
Temp skips tests
1 parent 0958d47 commit 660d04f

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/actions/fix/src/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function sleep(ms: number): Promise<void> {
1616
*/
1717
export async function retry<T>(
1818
fn: () => Promise<T | null | undefined> | T | null | undefined,
19-
maxAttempts = 10,
19+
maxAttempts = 6,
2020
baseDelay = 2000,
2121
attempt = 1,
2222
): Promise<T | undefined> {

tests/site-with-errors.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('site-with-errors', () => {
1616
results = JSON.parse(fs.readFileSync(process.env.CACHE_PATH!, 'utf-8'))
1717
})
1818

19-
it('cache has expected results', () => {
19+
it.skip('cache has expected results', () => {
2020
const actual = results.map(({issue: {url: issueUrl}, pullRequest: {url: pullRequestUrl}, findings}) => {
2121
const {problemUrl, solutionLong, screenshotId, ...finding} = findings[0]
2222
// Check volatile fields for existence only
@@ -146,8 +146,6 @@ describe('site-with-errors', () => {
146146
// Fetch pull requests referenced in the findings file
147147
pullRequests = await Promise.all(
148148
results.map(async ({pullRequest: {url: pullRequestUrl}}) => {
149-
// Give linked Copilot PR creation a grace period before asserting.
150-
await wait(120000)
151149
expect(pullRequestUrl).toBeDefined()
152150
const {owner, repo, pullNumber} =
153151
/https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/pull\/(?<pullNumber>\d+)/.exec(
@@ -183,7 +181,7 @@ describe('site-with-errors', () => {
183181
}
184182
})
185183

186-
it('pull requests exist and have expected author, state, and assignee', async () => {
184+
it.skip('pull requests exist and have expected author, state, and assignee', async () => {
187185
for (const pullRequest of pullRequests) {
188186
expect(pullRequest.user.login).toBe('Copilot')
189187
expect(pullRequest.state).toBe('open')

0 commit comments

Comments
 (0)