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

test: stop task scheduler between test runs #1311

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

peusebiu
Copy link
Collaborator

sync: remove sync WaitGroup, it's stopped with context

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@peusebiu peusebiu force-pushed the improve_sync branch 3 times, most recently from d9c6f03 to e3d169f Compare March 28, 2023 11:31
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #1311 (0a58f43) into main (af819e7) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1311      +/-   ##
==========================================
+ Coverage   90.38%   90.46%   +0.08%     
==========================================
  Files          97       97              
  Lines       21331    21338       +7     
==========================================
+ Hits        19280    19304      +24     
+ Misses       1534     1520      -14     
+ Partials      517      514       -3     
Impacted Files Coverage Δ
pkg/extensions/extension_sync_disabled.go 100.00% <ø> (ø)
pkg/extensions/sync/sync.go 95.12% <ø> (-0.09%) ⬇️
pkg/api/controller.go 92.59% <100.00%> (-0.08%) ⬇️
pkg/api/routes.go 94.96% <100.00%> (+0.53%) ⬆️
pkg/extensions/extension_sync.go 100.00% <100.00%> (ø)
pkg/test/common.go 84.62% <100.00%> (+0.05%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

andaaron
andaaron previously approved these changes Mar 28, 2023
Copy link
Contributor

@andaaron andaaron left a comment

Choose a reason for hiding this comment

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

Look good. Please include also the second fix (for getImageManifest ) in the commit message.

sync: remove sync WaitGroup, it's stopped with context
sync: onDemand will always try to sync newest image when a tag is used
if a digest is used then onDemand will serve local image
test(sync): fix flaky coverage in sync package
closes project-zot#1294

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha rchincha merged commit 3dd3c46 into project-zot:main Mar 29, 2023
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.

None yet

3 participants