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

[overhead] Append and update results (redux) #4038

Merged

Conversation

breedx-splk
Copy link
Contributor

Switch from stefanzweifel/git-auto-commit-action to EndBug/add-and-commit (it's more of what we need and is less targeted at static site generation). We leverage the gh-branch as a cloned subdir, copy the results into a local dir that is appended to by the test run. After the tests finish, we rsync the dir back into the subdir and remove the local copy.

Tested multiple times in another repo and seems to work fine -- we can append the gh-pages this way without needing to commit back to main. 🤞🏻 🍀 🐰 🦶🏻

Comment on lines +25 to +27
- name: inspect the results dir
working-directory: benchmark-overhead
run: ls -lR results
Copy link
Member

Choose a reason for hiding this comment

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

temporary debugging, or helpful to keep?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not both? :). I can remove it if you think it's too much clutter.

working-directory: benchmark-overhead
run: ls -lR results
- name: copy results back to gh-pages branch
run: rsync -avv benchmark-overhead/results/ gh-pages/benchmark-overhead/results/ && rm -rf benchmark-overhead/results
Copy link
Member

Choose a reason for hiding this comment

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

is the rm -rf part needed? (not that it's hurting..)

Suggested change
run: rsync -avv benchmark-overhead/results/ gh-pages/benchmark-overhead/results/ && rm -rf benchmark-overhead/results
run: rsync -avv benchmark-overhead/results/ gh-pages/benchmark-overhead/results/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have absolutely encountered problems with some of the GH actions when you have local changes. Some of them try and change branches and can't because of untracked changes. Removing the results like this helps to avoid those conditions. I'm hesitant to remove it...all the stars have to be aligned for it to work. ⭐ 😁

@trask
Copy link
Member

trask commented Sep 1, 2021

👍

@trask trask merged commit 78c4d98 into open-telemetry:main Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants