Skip to content

roachtest: clean up artifacts zipping code#111151

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:roachtest-zip-cleanup
Sep 26, 2023
Merged

roachtest: clean up artifacts zipping code#111151
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:roachtest-zip-cleanup

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

This change rewrites the artifacts zipping code and adds a test.

Instead of doing the walk twice (with the second one restricted to top-level entries), we first list and filter the directory entries.

This will make it easy to reuse the code to first move go coverage artifacts to their own archive.

Epic: none
Release note: None

@RaduBerinde RaduBerinde requested a review from a team as a code owner September 22, 2023 22:38
@RaduBerinde RaduBerinde requested review from smg260 and srosenberg and removed request for a team September 22, 2023 22:38
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

This change rewrites the artifacts zipping code and adds a test.

Instead of doing the walk twice (with the second one restricted to
top-level entries), we first list and filter the directory entries.

This will make it easy to reuse the code to first move go coverage
artifacts to their own archive.

Epic: none
Release note: None
Copy link
Copy Markdown
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for cleaning this up. This code wasn't touched in a while afaik; the most recent fix was to allow zip files in sub-directories [1], and the current implementation preserves that logic.

[1] #84085

@RaduBerinde
Copy link
Copy Markdown
Member Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig Bot commented Sep 26, 2023

Build succeeded:

@craig craig Bot merged commit 10d282d into cockroachdb:master Sep 26, 2023
@RaduBerinde RaduBerinde deleted the roachtest-zip-cleanup branch September 26, 2023 03:47
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.

3 participants