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

[Dev] Remove version linter flakiness #14998

Closed
wants to merge 141 commits into from

Conversation

dkijania
Copy link
Member

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

…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
@dkijania dkijania requested review from a team as code owners January 29, 2024 20:03
@dkijania dkijania self-assigned this Jan 29, 2024
@dkijania
Copy link
Member Author

!ci-build-me

Copy link
Member

@mrmr1993 mrmr1993 left a 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.

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}'],
Copy link
Member

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
@emberian emberian changed the base branch from berkeley to develop March 27, 2024 17:15
@dkijania dkijania force-pushed the dkijania/fix_missing_ref_files_for_ver_linter branch from 931ded8 to 43a532a Compare April 22, 2024 15:19
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 4, 2024

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania requested a review from georgeee October 21, 2024 14:37
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania closed this Oct 29, 2024
@dkijania
Copy link
Member Author

stale. closing

@dkijania dkijania deleted the dkijania/fix_missing_ref_files_for_ver_linter branch October 29, 2024 21:13
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.

Remove flakiness from Version linter tests
4 participants