Skip to content

Python: Enable build cache and Develocity reporting for pytest#6819

Merged
knutwannheden merged 1 commit intomainfrom
crisp-peacock
Feb 25, 2026
Merged

Python: Enable build cache and Develocity reporting for pytest#6819
knutwannheden merged 1 commit intomainfrom
crisp-peacock

Conversation

@knutwannheden
Copy link
Copy Markdown
Contributor

Summary

  • Enable Gradle remote build cache for the pytestTest task by declaring outputs, path sensitivity, and cacheIf { true } — matching the pattern used by npmTest in rewrite-javascript
  • Produce JUnit XML via --junitxml and register it with Develocity via ImportJUnitXmlReports so pytest results appear in build scans

Test plan

  • Verify CI build succeeds and pytestTest task runs
  • Check the Develocity build scan for pytest test results
  • On a second CI run with no Python changes, verify pytestTest is cached (UP-TO-DATE or FROM-CACHE)

…ytest

Add output declarations, path sensitivity, and cacheIf to the pytestTest
task so it participates in the remote build cache. Register the JUnit XML
report with Develocity via ImportJUnitXmlReports so pytest results appear
in build scans.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 25, 2026
@knutwannheden knutwannheden merged commit 12c2c73 into main Feb 25, 2026
1 of 3 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 25, 2026
@knutwannheden knutwannheden deleted the crisp-peacock branch February 25, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant