-
Notifications
You must be signed in to change notification settings - Fork 550
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
[Dev] Remove version linter flakiness #14998
Conversation
…pe reference file. Now it downloads 10 last commits on base and release branch and tries to to match type shape for any of it. Thanks to that we drastically lower possibility of failure when attempting to get type shape file based on commit sha
!ci-build-me |
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.
See comment. I'm pretty sure that fixing that bug will also induce the flakiness again though; it would probably be more disciplined to generate and upload the shapes for the parent commit as required instead, in some job that the check depends upon, and short circuiting when the corresponding shape file exists.
scripts/version-linter.py
Outdated
print ('Retrieving', branch, 'head commit...') | ||
result=subprocess.run(['git','log','-n','1','--format="%h"','--abbrev=7','--no-merges',f'{branch}'], | ||
result=subprocess.run(['git','log','-n',str(n),'--format="%h"','--abbrev=7','--no-merges',f'{branch}'], |
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.
I think this is the opposite of what we want. We really want the last n 'first-parent' commits, each of which represents a merge to the target branch from a PR. Consider instead
git log -n N --format="%h" --abbrev=7 --first-parent BRANCH
…pe reference file. Now it downloads 10 last commits on base and release branch and tries to to match type shape for any of it. Thanks to that we drastically lower possibility of failure when attempting to get type shape file based on commit sha
…://github.com/MinaProtocol/mina into dkijania/fix_missing_ref_files_for_ver_linter
931ded8
to
43a532a
Compare
!ci-build-me |
!ci-build-me |
…release branch when BUILDKITE_PULL_REQUEST_BASE_BRANCH is not defined
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
…ania/fix_missing_ref_files_for_ver_linter
!ci-build-me |
…nafly_master' into dkijania/generate_version_lint_inafly_master
…ania/fix_missing_ref_files_for_ver_linter
!ci-build-me |
!ci-build-me |
This reverts commit 484dd949cf7b6012ffc7a7712ca286e0dfe0e50f.
…ania/fix_missing_ref_files_for_ver_linter
!ci-build-me |
!ci-build-me |
!ci-build-me |
stale. closing |
An attempt to fix version linter job flakiness by retrieving more than 1 commit from base and release branch and trying to find reference type shape best on shas retrieved in such way. For pr branch still we are getting only one (last) commit.
Closes: #14812