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

chore: fix archiver test - inconsistent number of files #3902

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

Sidddddarth
Copy link
Member

@Sidddddarth Sidddddarth commented Sep 21, 2023

Description

fixing a test in archiver, where there could be more files uploaded per source than 1.

Linear Ticket

slack thread

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@@ -171,7 +171,7 @@ func TestJobsArchival(t *testing.T) {
fileIter := fm.ListFilesWithPrefix(context.Background(), "", prefix, 20)
files, err := getAllFileNames(fileIter)
require.NoError(t, err)
require.Equal(t, sourcesPerWorkspace[i], len(files))
require.LessOrEqual(t, sourcesPerWorkspace[i], len(files))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the archiver producing more files than expected in this controlled test?

@Sidddddarth Sidddddarth force-pushed the chore.archiverTestFix branch 2 times, most recently from 7376663 to 362b815 Compare September 25, 2023 08:38
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.10% 🎉

Comparison is base (be0a62e) 69.16% compared to head (78430f1) 69.27%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3902      +/-   ##
==========================================
+ Coverage   69.16%   69.27%   +0.10%     
==========================================
  Files         353      353              
  Lines       52903    52905       +2     
==========================================
+ Hits        36589    36648      +59     
+ Misses      13998    13941      -57     
  Partials     2316     2316              
Files Changed Coverage Δ
processor/processor.go 87.39% <100.00%> (+0.01%) ⬆️

... and 12 files with indirect coverage changes

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

@Sidddddarth Sidddddarth merged commit 01a0737 into master Sep 25, 2023
35 checks passed
@Sidddddarth Sidddddarth deleted the chore.archiverTestFix branch September 25, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants