Skip to content

Normalize a single-pattern paths value in make_test_data.py - #166

Merged
abrignoni merged 1 commit into
mainfrom
fix/make-test-data-single-pattern-paths
Sep 4, 2026
Merged

abrignoni merged 1 commit into
mainfrom
fix/make-test-data-single-pattern-paths

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes test data generation when an artifact's paths holds a single pattern written without its trailing comma.

('glob') is a string, not a one-element tuple, so the live-archive search in process_archive iterated it one character at a time. The leading * matched every member, and the artifact's test data zip took the whole extraction instead of the responsive files.

process_archive now normalizes a bare string the way match_files_from_list and the main loop already do. The pre-compiled filepath_list branch is unchanged.

No artifact in this repo currently declares paths that way, so this is the matching change rather than a fix for observed output here.

A paths value written as ('glob') with no trailing comma is a string, not a
one-element tuple, so the live-archive search iterated it character by
character. The leading '*' matched every member of the archive, and the
artifact's test data zip took the whole extraction instead of the responsive
files.

process_archive now normalizes a bare string to a one-element tuple, the same
way match_files_from_list and the main loop already do. The pre-compiled
filepath_list branch is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 07c28c4 into main Sep 4, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/make-test-data-single-pattern-paths branch September 4, 2026 18:44
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.

1 participant