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

Skip symlinks in enqueue_git_update_all #5951

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Sep 26, 2024

I forgot that -d is actually true for symlinks.

It resulted in the gru task processing over the same realpaths, trying
to get a guard for the same path multiple times, which failed and ran
int an endless retry.

Issue: https://progress.opensuse.org/issues/164898

I tested it locally with symlinks and could now reproduce the problem. It tries to get a guard for the same directory multiple times and runs into an endless retry.

@perlpunk perlpunk changed the title Skip symlinks in enqueue_git_update_all Improve git_auto_update Sep 26, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.75%. Comparing base (fbbcf84) to head (bb8d06e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5951   +/-   ##
=======================================
  Coverage   98.75%   98.75%           
=======================================
  Files         396      396           
  Lines       38966    38966           
=======================================
  Hits        38479    38479           
  Misses        487      487           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@perlpunk perlpunk force-pushed the no-symlinks branch 2 times, most recently from 24c1ad4 to e7da05c Compare September 26, 2024 16:09
@perlpunk perlpunk changed the title Improve git_auto_update Fix openqa-enqueue-git-auto-update skipping symlinks Sep 26, 2024
Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

I guess you need to extend tests according to the codecov report

@perlpunk
Copy link
Contributor Author

I guess you need to extend tests according to the codecov report

No, codecov just didn't run on my force push yet

@perlpunk perlpunk force-pushed the no-symlinks branch 2 times, most recently from 8b49b5a to d299c40 Compare September 27, 2024 14:55
@perlpunk perlpunk changed the title Fix openqa-enqueue-git-auto-update skipping symlinks Skip symlinks in enqueue_git_update_all Sep 27, 2024
@perlpunk
Copy link
Contributor Author

I reduced this PR to only the first commit about using -l.

@okurz
Copy link
Member

okurz commented Sep 28, 2024

@Mergifyio rebase

I forgot that `-d` is actually true for symlinks.

It resulted in the gru task processing over the same realpaths, trying
to get a guard for the same path multiple times, which failed and ran
int an endless retry.

Issue: https://progress.opensuse.org/issues/164898
Copy link
Contributor

mergify bot commented Sep 28, 2024

rebase

✅ Branch has been successfully rebased

@mergify mergify bot merged commit 90e31d3 into os-autoinst:master Sep 28, 2024
45 checks passed
@perlpunk perlpunk deleted the no-symlinks branch October 2, 2024 10:50
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.

4 participants