-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(flakiness): update flakiness format #4808
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,7 @@ const utils = module.exports = { | |
}); | ||
}, | ||
|
||
initializeFlakinessDashboardIfNeeded: function(testRunner) { | ||
initializeFlakinessDashboardIfNeeded: async function(testRunner) { | ||
// Generate testIDs for all tests and verify they don't clash. | ||
// This will add |test.testId| for every test. | ||
// | ||
|
@@ -181,18 +181,22 @@ const utils = module.exports = { | |
// CIRRUS_BASE_SHA env variables. | ||
if (!process.env.FLAKINESS_DASHBOARD_PASSWORD || process.env.CIRRUS_BASE_SHA) | ||
return; | ||
const sha = process.env.FLAKINESS_DASHBOARD_BUILD_SHA; | ||
const {sha, timestamp} = await FlakinessDashboard.getCommitDetails(__dirname, 'HEAD'); | ||
const dashboard = new FlakinessDashboard({ | ||
dashboardName: process.env.FLAKINESS_DASHBOARD_NAME, | ||
commit: { | ||
sha, | ||
timestamp, | ||
url: `https://github.com/GoogleChrome/puppeteer/commit/${sha}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is baking in the repo URL necessary here? The commit hash should be enough. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't want to rely on Github URL schemes too much in flakiness viewer. This comes for free since this is per-build only (and there are not many builds) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if we ever move the repo? |
||
}, | ||
build: { | ||
url: process.env.FLAKINESS_DASHBOARD_BUILD_URL, | ||
name: sha.substring(0, 8), | ||
}, | ||
dashboardRepo: { | ||
url: 'https://github.com/aslushnikov/puppeteer-flakiness-dashboard.git', | ||
username: 'puppeteer-flakiness', | ||
email: 'aslushnikov+puppeteerflakiness@gmail.com', | ||
password: process.env.FLAKINESS_DASHBOARD_PASSWORD, | ||
branch: process.env.FLAKINESS_DASHBOARD_NAME, | ||
}, | ||
}); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you move this to the top of this file, like line 20. Its easier to reason about this file if the whole thing is async, rather than just one step at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that initially, but didn't like extra indentation. Does this bother you strongly?