Skip to content

Remove the JSON report - #8628

Merged
cbeauchesne merged 3 commits into
mainfrom
cbeauchesne/remove-json-report
Nov 23, 2026
Merged

cbeauchesne merged 3 commits into
mainfrom
cbeauchesne/remove-json-report

Conversation

@cbeauchesne

Copy link
Copy Markdown
Collaborator

Motivation

report.json (pytest-json-report) has no consumer left: its last one, the easy-win activation, reads reportJunit.xml since #8612.

Changes

  • Remove pytest-json-report: requirements, license file, addopts, and the conftest hooks (pytest_json_runtest_metadata, pytest_json_modifyreport, the terminal-summary monkey patch, json_report_file).
  • _collect_item_metadata adds the codeowners, feature ids and declarations to the JUnit report. Only the JSON metadata hook called it, so it now runs from the pytest_runtest_makereport hookwrapper on the setup phase, the same point as before. The JUnit snapshot tests in TEST_THE_TEST confirm the properties and their order are unchanged.
  • Delete utils/scripts/markdown_logs.py, which only read report.json and has no caller in this repository.
  • Docs, .gitignore and gitlab_print_logs.sh: drop the report.json references.

Validation

TEST_THE_TEST, run with pytest-json-report uninstalled: 1393 passed, 1 xfailed.

🤖 Generated with Claude Code

cbeauchesne and others added 2 commits November 20, 2026 18:15
pytest-json-report produced report.json. Its last consumer, the easy-win
activation, reads reportJunit.xml since #8612.

- remove pytest-json-report and its conftest hooks
- collect the item metadata (codeowners, feature ids, declarations) for the
  JUnit report from pytest_runtest_makereport, as the JSON metadata hook did
- remove the unused utils/scripts/markdown_logs.py
- update docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

.gitignore                                                              @DataDog/system-tests-core
LICENSE-3rdparty.csv                                                    @DataDog/system-tests-core
conftest.py                                                             @DataDog/system-tests-core
docs/execute/logs.md                                                    @DataDog/system-tests-core
docs/understand/scenarios/k8s_lib_injection.md                          @DataDog/system-tests-core
docs/understand/scenarios/onboarding.md                                 @DataDog/system-tests-core
pyproject.toml                                                          @DataDog/system-tests-core
requirements.txt                                                        @DataDog/system-tests-core
utils/ci/gitlab/main.yml                                                @DataDog/system-tests-core
utils/scripts/gitlab_print_logs.sh                                      @DataDog/system-tests-core
utils/scripts/markdown_logs.py                                          @DataDog/system-tests-core

@datadog-official

datadog-official Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: cf7ad54 | Docs | View more details | Give us feedback!

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbeauchesne
cbeauchesne marked this pull request as ready for review November 23, 2026 10:53
@cbeauchesne
cbeauchesne requested a review from a team as a code owner November 23, 2026 10:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:54:59.053418Z cf7ad54 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cbeauchesne
cbeauchesne enabled auto-merge (squash) November 23, 2026 11:17
@cbeauchesne
cbeauchesne merged commit 2242004 into main Nov 23, 2026
2376 checks passed
@cbeauchesne
cbeauchesne deleted the cbeauchesne/remove-json-report branch November 23, 2026 15:38
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.

2 participants