Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Only comment on benchmarks on alert #1478

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

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

NathanielRN
Copy link
Contributor

@NathanielRN NathanielRN commented Dec 14, 2020

Description

After #1473, the GitHub action would try to fetch the gh-pages branch using the secrets.GITHUB_TOKEN of the pull request author. This will always fail, so we should skip this step using the undocumented skip-fetch-gh-pages flag of the GitHub action we use. See source code that tries to pull gh-pages

We narrowed the problem to the comment-always: true flag being set. And further, it only happens when multiple tests want to comment at the same time.

To unblock the tests for now, we remove the feature which comments on the "new" benchmarks versus the "previous" benchmarks. We can come back and investigate later.

Example failed run: https://github.com/open-telemetry/opentelemetry-python/pull/1470/checks?check_run_id=1552050085#step:9:55

Type of change

Please delete options that are not relevant.

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

How Has This Been Tested?

CI test should prove that this fix unblocks master tests.

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project

@NathanielRN NathanielRN requested review from a team, toumorokoshi and hectorhdzg and removed request for a team December 14, 2020 18:18
@aabmass aabmass added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 14, 2020
@aabmass
Copy link
Member

aabmass commented Dec 14, 2020

This will always fail, so we should skip this step using the undocumented skip-fetch-gh-pages flag of the GitHub action we use.

Why will it always fail?

@NathanielRN NathanielRN marked this pull request as draft December 14, 2020 18:27
@NathanielRN
Copy link
Contributor Author

Why will it always fail?

@aabmass I was mistaken, I don't think that's the problem anymore, still trying to see why it fails after the

git checkout - command

@NathanielRN NathanielRN force-pushed the dont-pull-gh-pages branch 4 times, most recently from ef24d39 to ea2eb43 Compare December 14, 2020 19:04
@NathanielRN NathanielRN changed the title Skip gh pages pull if not a master merge Only comment on benchmarks on alert Dec 14, 2020
@NathanielRN NathanielRN force-pushed the dont-pull-gh-pages branch 4 times, most recently from d5aafa5 to a14d64c Compare December 14, 2020 20:03
@NathanielRN NathanielRN marked this pull request as ready for review December 14, 2020 20:35
@lzchen lzchen merged commit 47d6e95 into open-telemetry:master Dec 14, 2020
@NathanielRN NathanielRN deleted the dont-pull-gh-pages branch December 14, 2020 21:30
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.

3 participants