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

fix benchmark action #2656

Merged

Conversation

officialasishkumar
Copy link
Member

@officialasishkumar officialasishkumar commented Jun 13, 2024

📝 Description

Type: 🪲 🚀

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@officialasishkumar officialasishkumar changed the title fix benchmark action [WIP] fix benchmark action Jun 13, 2024
@tardis-bot
Copy link
Contributor

*beep* *bop*

Hi, human.

I'm the @tardis-bot and couldn't find your records in my database. I think we don't know each other, or you changed your credentials recently.

Please add your name and email to .mailmap in your current branch and push the changes to this pull request.

In case you need to map an existing alias, follow this example.

@tardis-bot
Copy link
Contributor

tardis-bot commented Jun 13, 2024

*beep* *bop*
Hi human,
I ran benchmarks as you asked comparing master (e88a31a) and the latest commit (5d5e93c).
Here are the logs produced by ASV.
Results can also be downloaded as artifacts here.
Significantly changed benchmarks:

· No results found

All benchmarks:

· No results found

@officialasishkumar officialasishkumar force-pushed the github-actions-benchmark branch 11 times, most recently from 600108c to cbefb9e Compare June 14, 2024 13:57
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

test commit
@officialasishkumar officialasishkumar changed the title [WIP] fix benchmark action fix benchmark action Jun 18, 2024
.gitignore Outdated Show resolved Hide resolved
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@andrewfullard
Copy link
Contributor

andrewfullard commented Jun 21, 2024

Please test by making a version on your fork and add link to test results here

@officialasishkumar officialasishkumar force-pushed the github-actions-benchmark branch 2 times, most recently from 5dcaa32 to aea28c5 Compare June 28, 2024 01:36
@officialasishkumar
Copy link
Member Author

Please test by making a version on your fork and add link to test results here

https://github.com/AkashKumar7902/tardis/actions/runs/9705432873/job/26787490302?pr=6

the error in the later half is due to the generation of file which is relying upon tardis repo. The compare is working which means the bot will display the comparision output.

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@@ -80,6 +85,9 @@ jobs:
- name: Install asv
run: pip install asv

- run: git remote add upstream https://github.com/tardis-sn/tardis
Copy link
Contributor

Choose a reason for hiding this comment

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

Commands have no label

Copy link
Member Author

Choose a reason for hiding this comment

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

Added


- name: Compare Master and PR head
run: asv compare ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | tee asv-compare-output.log
run: asv compare upstream/master HEAD --config asv.conf.json | tee asv-compare-output.log
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hardcoded

Copy link
Member Author

Choose a reason for hiding this comment

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

image
Unfortunately, the method of fetching the hash without hardcoding the branch hasn't been successful. Given that the master branch name is unlikely to change, would it be acceptable to use a hardcoded approach in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I suppose so

@jvshields
Copy link
Contributor

@officialasishkumar
Copy link
Member Author

@atharva-2001
Copy link
Member

Yes, that's an extra step. I have removed it.

here is the new action run: officialasishkumar/tardis/actions/runs/9733397076/job/26860263830?pr=12

This workflow used this workflow file-
https://github.com/officialasishkumar/tardis/actions/runs/9733397076/workflow?pr=12
which does not have your commits. Is the workflow being correctly tested?
Note that these are pull request target workflows, so they will only pick the workflow file from the target(master) branch, not from the pull request branch.

@officialasishkumar
Copy link
Member Author

Note that these are pull request target workflows, so they will only pick the workflow file from the target(master) branch, not from the pull request branch.

Here is the new workflow run: https://github.com/officialasishkumar/tardis/actions/runs/9746049892/job/26895430197?pr=13
Here is the master branch benchmarks.yml that was updated yesterday: https://github.com/officialasishkumar/tardis/blob/master/.github/workflows/benchmarks.yml

@atharva-2001
Copy link
Member

The workflow runs on this commit-
https://github.com/officialasishkumar/tardis/tree/bff68859d97a0764e38e5e598c48940e748e45a9

Not the master branch as far as I understand.

Click on the workflow file on the left side of this page-
https://github.com/officialasishkumar/tardis/actions/runs/9746049892/job/26895430197?pr=13

then click on commit hash, then browse files, and you will see this
https://github.com/officialasishkumar/tardis/tree/bff68859d97a0764e38e5e598c48940e748e45a9

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@officialasishkumar
Copy link
Member Author

@atharva-2001, the workflow file might be because my branch is not really updated with master for a while (approx 2 months). I think the workflow is running with the current master branch as you can see in the build that the jobs that are runned are aligned with the current changes and not the old one.

.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
asv.conf.json Outdated Show resolved Hide resolved
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
andrewfullard
andrewfullard previously approved these changes Jul 3, 2024
Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

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

I think we should try and merge this before we worry about solving the crashing individual benchmarks in #2640

Comment on lines 68 to 71
- name: Fetch from upstream master
run: |
git remote add upstream https://github.com/tardis-sn/tardis
git fetch upstream master
Copy link
Member

Choose a reason for hiding this comment

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

this is what the checkout does right? Perhaps you could just do git remote add upstream URL?

Copy link
Member Author

Choose a reason for hiding this comment

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

what do you mean? git remote add upstream url is already present.

Copy link
Member

Choose a reason for hiding this comment

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

The first step just does this, perhaps the remote is origin there. If yes then we can perhaps reduce this step here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

By default I think it is origin, so it does not find upstream, just rename origin to upstream if you don;t want origin

Copy link
Member Author

@officialasishkumar officialasishkumar Jul 3, 2024

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Thanks

.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/benchmarks.yml Show resolved Hide resolved
Comment on lines 68 to 71
- name: Fetch from upstream master
run: |
git remote add upstream https://github.com/tardis-sn/tardis
git fetch upstream master
Copy link
Member

Choose a reason for hiding this comment

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

The first step just does this, perhaps the remote is origin there. If yes then we can perhaps reduce this step here.

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Copy link
Member

@atharva-2001 atharva-2001 left a comment

Choose a reason for hiding this comment

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

Great work!

Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

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

If Atharva is happy, I am also happy. Cross your fingers!

@andrewfullard andrewfullard merged commit 97cf284 into tardis-sn:master Jul 5, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants