Skip to content
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

Use Py Version and Package matrix to distinguish benchmarks #841

Conversation

NathanielRN
Copy link
Contributor

@NathanielRN NathanielRN commented Dec 23, 2021

Description

Follow up to #838, the benchmark-action requires you provide the name under which all the benchmarks should be uploaded. Because we merged all the benchmarks into one, it was combining all the benchmarks under the same name instead of distinguishing by matrix.python-version and matrix.package.

i.e.

py7 - sdkextension
py8 - sdkextension
py7 - propagator

were all going under the same name, with the last {pyversion} - {package} overwriting the previous one.

To fix this we upload files that use matrix.python-version and matrix.package as the key for file naming.

NOTE: This means we will have MANY more jobs because there will be a job for every (matrix.python-version, matrix.package) permutation.

QUESTION: Should we just combine everything under the same name (i.e. OpenTelemetry Python Contrib Benchmarks) so we can do it all in one job?

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Didn't have a chance to run on my fork, but this is all on the gh-pages branch which should be easy to clean up.

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
    - [] Changelogs have been updated
    - [] Unit tests have been added
    - [] Documentation has been updated

@NathanielRN NathanielRN requested a review from a team December 23, 2021 17:37
@NathanielRN NathanielRN added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 23, 2021
combine-benchmarks:
runs-on: ubuntu-latest
needs: build
if: ${{ always() }}
name: Combine benchmarks from previous build job
strategy:
max-parallel: 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We run serially because the github-action-benchmark GH action takes a lock on the gh-pages branch.

@NathanielRN NathanielRN marked this pull request as draft December 25, 2021 22:45
@NathanielRN NathanielRN changed the title Use Py Version and Package matrix to distringuish benchmarks Use Py Version and Package matrix to distinguish benchmarks Jan 3, 2022
@NathanielRN
Copy link
Contributor Author

Closing this PR for now since I'm not actively working on it.

@NathanielRN NathanielRN closed this Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant