Integrate ignore_patterns into Competitions upload#1128
Closed
stevemessick wants to merge 5 commits into
Closed
Conversation
- Define DEFAULT_IGNORE_PATTERNS. - Implement should_ignore helper. - Update DirectoryArchive to support filtering for zip/tar formats. - Add unit tests for should_ignore and DirectoryArchive. TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
- Update competition_data_update to accept and apply ignore_patterns during directory walk. - Add --ignore-patterns CLI argument to competitions data update command. TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
1a24c0d to
3113934
Compare
Contributor
Author
|
Closing; see #1130. |
stevemessick
added a commit
that referenced
this pull request
Jul 16, 2026
This PR combines all the work for implementing `ignore_patterns` in model, dataset, and competition uploading, along with documentation. It contains changes from the following PRs (kept open for reference): - #1125 (Core logic) - #1126 (Models integration) - #1127 (Datasets integration) - #1128 (Competitions integration) - #1129 (Documentation) Key Changes: - Core: Define `DEFAULT_IGNORE_PATTERNS` and `should_ignore()`. Update `DirectoryArchive` to filter files/dirs. - Models: Integrate `ignore_patterns` into model uploading API and CLI (`--ignore-patterns`). - Datasets: Integrate `ignore_patterns` into dataset uploading API and CLI (`--ignore-patterns`). - Competitions: Integrate `ignore_patterns` into competition data update walk. Bypass defaults if `include_hidden` is True. Add CLI support. - Docs: Document the new option for all commands. TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates
ignore_patternsinto the competitions data upload workflow.Changes:
competition_data_update(and CLI wrapper) to accept and applyignore_patternsduring directory walk.DEFAULT_IGNORE_PATTERNSwheninclude_hiddenis True to preserve backward compatibility.Depends on #1125 (core logic).
TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322