-
Notifications
You must be signed in to change notification settings - Fork 292
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
Create benchmark.yml and add end-to-end benchmark #1736
Conversation
benchmarks/build_test.go
Outdated
trustedImg = baseImg + "-trusted-" | ||
builder = "cnbs/sample-builder:bionic" | ||
mockAppPath = filepath.Join("..", "acceptance", "testdata", "mock_app") | ||
paketoBuilder = "paketobuildpacks/builder:base" |
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.
Could we make this configurable with an env var or something? It would be nice to make it easy for contributors to test this out with builders that they care about.
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.
Sure, I have created setEnv()
to set these values. If value is not set in the environment, default values will be assigned. setEnv()
will be invoked at first of BenchmarkBuild()
. Does this treatment make sense?
alert-threshold: '200%' | ||
comment-on-alert: true | ||
fail-on-alert: true | ||
alert-comment-cc-users: '@edithwuly' |
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.
Eventually we'll probably want this to be '@buildpacks/platform-maintainers'
but this will be helpful to reduce noise while we're iterating on the benchmark suite
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.
Ok, so I just leave @edithwuly
here temporarily.
Signed-off-by: edithwuly <edithwuly@163.com>
Signed-off-by: edithwuly <edithwuly@163.com>
Signed-off-by: edithwuly <edithwuly@163.com>
Signed-off-by: edithwuly <edithwuly@163.com>
c740838
to
1fb39b1
Compare
Signed-off-by: edithwuly <edithwuly@163.com>
Summary
Create git action to keep runing benchmarks and graphing the results each time push on main branch. Benchmark for
pack build --buildpack
is added as well.Output
The graphs for benchmark results will be shown in https://buildpack.github.io/pack/dev/bench/.
Before
Brank branch
gh-pages
is required for saving benchmark result data. index.html and data.js will be created automatically.alert-threshold
andalert-comment-cc-users
field should be decided.After
Documentation
Related
Resolves #___