-
Notifications
You must be signed in to change notification settings - Fork 137
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
ci(jenkins): report bundlesize as a GitHub comment #826
Conversation
TODO: Create markdown file on the fly
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
📦 Bundlesize report
|
Jenkinsfile
Outdated
@Library('apm@feature/bundlesize-step-1') _ | ||
|
||
pipeline { | ||
agent { label 'linux && immutable' } |
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.
for testing purposes
Jenkinsfile
Outdated
PIPELINE_LOG_LEVEL = 'DEBUG' | ||
CODECOV_SECRET = 'secret/apm-team/ci/apm-agent-rum-codecov' | ||
SAUCELABS_SECRET_CORE = 'secret/apm-team/ci/apm-agent-rum-saucelabs@elastic/apm-rum-core' | ||
SAUCELABS_SECRET = 'secret/apm-team/ci/apm-agent-rum-saucelabs@elastic/apm-rum' |
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.
for testing purposes
Jenkinsfile
Outdated
@@ -364,7 +368,8 @@ pipeline { | |||
} | |||
post { | |||
cleanup { | |||
notifyBuildResult() | |||
// bundlesize id was generated previously, see the bundlesize function |
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.
// bundlesize id was generated previously, see the bundlesize function | |
// bundlesize id was generated previously, see the lint stage |
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.
@v1v Thanks. PR looks good to me except for the DEBUG
flag.
a990a52
to
f303c7c
Compare
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.
Thanks @v1v
One minor comment, can we convert the bytes to KB with decimal points? that's a bit easier to read.
Also, it seems the diff part isn't showing anything on this PR, is that because the diff is zero? maybe we should show that as well
I'll enable the KB format in a follow up, since it requires changes in the jenkins shared library.
Good point, this will change as soon as this PR gets merged, then there will be something to compare with, at the moment this PR is the only one with the bundlesize reporting |
@v1v Not able to see the diff in this PR - #825 (comment) |
I think the master branch was not yet available with the report -> see here Since there is already a json file in the master build then you should see the comment as expected in the next build. I'll rebuild your PR to see if it behaves as expected |
* upstream/master: (23 commits) feat(rum-core): capture XHR/Fetch spans using resource timing (elastic#825) docs: update set-up.asciidoc (elastic#814) chore: remove compressed size gh workflow (elastic#828) feat: use page visibilityState for browser responsiveness check (elastic#813) ci(jenkins): report bundlesize as a GitHub comment (elastic#826) docs: release notes for 5.2.1 (elastic#824) chore(release): publish fix(rum-core): protect aganist buggy navigation timing data (elastic#819) fix(rum-core): protect aganist buggy navigation timing data (elastic#819) chore(rum-core): use startTime for LCP marks (elastic#815) fix(rum-core): capture tbt after all task entries are observed (elastic#803) feat(rum-react): use correct path when route is path array (elastic#800) ci: enable benchmark on a PR basis (elastic#812) ci: use dockerLogs step (elastic#810) fix: env var invalid type (elastic#809) fix: workarount for elastic/beats#18858 (elastic#807) docs: add release notes for 5.2.0 (elastic#801) chore(release): publish fix(rum-core): consider user defined type of high precedence (elastic#798) fix(rum): use single instance of apm across all packages (elastic#796) ...
* ci(jenkins): report bundlesize as a GitHub comment TODO: Create markdown file on the fly * ci: stash outside of the shell step * ci: revert changes * ci: use current * ci: use step * ci: for testing purposes * ci: call the step * ci: debugging purposes * ci: use the worker instead * ci: no in the docker container * ci: use current branch and change comment
Create markdown file on the fly and populate the content as a GitHub comment. See #826 (comment)
Issues
Closes #667