python(feat): archive pytest reports on create - #808
Merged
alexluck-sift merged 3 commits intoOct 1, 2026
Merged
Conversation
Dev runs can opt in so they drop out of the default Test Results views. An explicit false still overrides a shared true.
Contributor
|
Python docs preview: https://sift-stack.github.io/sift/python/pr-808/ Deployed from |
ian-sift
requested review from
alexluck-sift and
scv-sift
and removed request for
scv-sift
September 30, 2026 21:27
The archived note sat on the import command line, so copying that line would not run. Put the note on the next line.
Use pytest's None ini default so an unset key does not hide TOML, and print archived on the status row so the upload command stays copyable.
alexluck-sift
approved these changes
Oct 1, 2026
alexluck-sift
deleted the
eng-15045-pytest-plugin-archive-report-on-create-opt-in
branch
October 1, 2026 16:57
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.
Summary
archive_on_createsetting so the pytest plugin archives a report right after creating it. Dev runs can drop out of the default Test Results views.--sift-archive-on-create,sift_archive_on_create,SIFT_REPORT_ARCHIVE_ON_CREATE, and[tool.sift.pytest.report]. An explicitfalseoverrides atruefrom a lower-precedence source.https://linear.app/siftstack/issue/ENG-15045/pytest-plugin-archive-report-on-create-opt-in
Test plan
pytest lib/sift_client/_tests/pytest_plugin lib/sift_client/_tests/_internal/low_level_wrappers/test_archive_replay.py lib/sift_client/_tests/util/test_report_context.py(211 passed)archive_on_create = truein a sharedpyproject.toml, run offline, and confirm the footer prints(archived)and the log containsisArchived. Local run of a temp project with that TOML and--sift-offline: the footer printed a separate(archived)line underimport-test-result-log, and the JSONL contained[UpdateTestReport] ... "isArchived":true.SIFT_REPORT_ARCHIVE_ON_CREATE=falseover that TOML value and confirm the report stays unarchived. The same project with that env var printed no(archived)line, and the JSONL had noisArchived.