Skip to content

Integrate ignore_patterns into Competitions upload#1128

Closed
stevemessick wants to merge 5 commits into
mainfrom
feature/ignore-patterns-competitions
Closed

Integrate ignore_patterns into Competitions upload#1128
stevemessick wants to merge 5 commits into
mainfrom
feature/ignore-patterns-competitions

Conversation

@stevemessick

Copy link
Copy Markdown
Contributor

This PR integrates ignore_patterns into the competitions data upload workflow.

Changes:

  • Update competition_data_update (and CLI wrapper) to accept and apply ignore_patterns during directory walk.
  • Add --ignore-patterns CLI argument to competitions data upload command.
  • Add unit tests and CLI parser tests.
  • Bypass DEFAULT_IGNORE_PATTERNS when include_hidden is True to preserve backward compatibility.

Depends on #1125 (core logic).

TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322

- 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
@stevemessick

Copy link
Copy Markdown
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
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