Skip to content

Improvements to ingest.py command#9686

Open
moijes12 wants to merge 2 commits into
mozilla:masterfrom
moijes12:ingest-improvements
Open

Improvements to ingest.py command#9686
moijes12 wants to merge 2 commits into
mozilla:masterfrom
moijes12:ingest-improvements

Conversation

@moijes12

@moijes12 moijes12 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Changes Introduced

  • Mapped the verbosity levels to the logging levels
  • Updated the list of ingestion types in the --help

Output

usage: manage.py ingest [-h] [-p PROJECT] [-c COMMIT] [--enable-eager-celery] [-a] [--root-url ROOT_URL]
                        [--task-id [TASKID]] [--pr-url PRURL] [--dry-run] [--last-n-pushes LAST_N_PUSHES] [--version]
                        [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback] [--no-color]
                        [--force-color] [--skip-checks]
                        ingestion_type

Ingests a single push and tasks into Treeherder

positional arguments:
  ingestion_type        Type of ingestion to do: [task|push|git-push|git-pushes|pr]
...

Testing

  • Test manually and checked that no errors are seen when running the command

Fixes Bug-2053986 Bug-2053978

@Archaeopteryx @gmierz

moijes12 added 2 commits July 10, 2026 05:11
Added `git-pushes` as a supported ingestion type to the --help
section of the ingest.py script

Fixes Bug-2053986
Allow user to set the logging level using the verbosity flag
provided by Django BaseCommand.

Fixes Bug-2053978
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