-
Notifications
You must be signed in to change notification settings - Fork 16
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
helper: repo_sync: improve timeout diagnostics #354
Conversation
quaresmajose
commented
Oct 3, 2024
•
edited
Loading
edited
- exit after finishing all timeout attempts
- add sleep proportional to the number of attempts before the next sync
- run repo with verbose after some failure
8eeb414
to
2d814cb
Compare
2d814cb
to
176a54f
Compare
for i in $(seq 4); do | ||
run repo init --repo-rev=v2.35 --no-clone-bundle -u $* ${REPO_INIT_OVERRIDES} && break | ||
run repo init $_repo_extra_args --repo-rev=v2.35 --no-clone-bundle -u $* ${REPO_INIT_OVERRIDES} && break | ||
_repo_extra_args = "--verbose" |
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.
What is the downside of always running with verbose?
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.
basically it just generates less noise, as the first time it almost always works
- exit after finishing all timeout attempts - add sleep proportional to the number of attempts before the next sync - run repo with verbose after some failure Signed-off-by: Jose Quaresma <[email protected]>
176a54f
to
b249967
Compare
for i in $(seq 4); do | ||
run timeout 4m repo sync && break | ||
run timeout 4m repo sync $_repo_extra_args && break | ||
_repo_extra_args = "--verbose" |
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.
clever
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.
LGTM. Cool!
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.
LGTM