-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(gatsby-plugin-benchmark-reporting): Add more fields to the report #21973
Conversation
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.
Yeah good for me.
I would probably not set any defaults at all. The build type in particular might be misleading later. Better not to have any value at all. The other values, I think an empty value is the same as 'unknown' so feels a bit redundant. Fine with me either way :)
contentSource: this.pluginOptions.contentSource || `Unknown`, | ||
siteType: this.pluginOptions.siteType || `Unknown`, | ||
repoName: this.pluginOptions.repoName || `Unknown`, | ||
buildType: process.env.BENCHMARK_BUILD_TYPE || `COLD_START`, |
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 wouldn't set a default at all tbh. Might be misleading.
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.
Will do!
@pvdz Changed to no defaults and added support for build hook payload https://docs.netlify.com/configure-builds/build-hooks/#payload. For netlify CI we can decorate the report by passing env vars through this INCOMING_HOOK_BODY |
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.
yay
Holy buckets, @abhiaiyer91 — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Description
Add some data sent to the reporting url via pluginOptions / env
Documentation
These values are used internally so I didnt add them to the docs