Skip to content

test: add timeout and progress logging to integration test - #45

Merged
cloudshiftchris merged 1 commit into
mainfrom
cloudshiftchris/merge-main
May 12, 2026
Merged

test: add timeout and progress logging to integration test#45
cloudshiftchris merged 1 commit into
mainfrom
cloudshiftchris/merge-main

Conversation

@cloudshiftchris

Copy link
Copy Markdown
Member

Summary

  • Configure a bounded test timeout on MavenSyncIntegrationTest (MAVEN_SYNC_IT_TIMEOUT_MINUTES, default 15 min) so it fails cleanly instead of looking hung in Gradle.
  • Log per-artifact INFO progress inside crawl(...).collect { } and a heartbeat every 25 versions during asset listing (previously only DEBUG via MavenHttpRepository), so slow runs over large trees like org/jooq/pro are visibly making progress.
  • Add elapsed wall-clock time to the end-of-test discovery report summary.

Test plan

  • ./gradlew precommit — green
  • MAVEN_SYNC_IT_CONFIG=build/local-it.json ./gradlew test --tests '*MavenSyncIntegrationTest*' -i — periodic [N] group:artifact … logs appear; summary prints elapsed:
  • MAVEN_SYNC_IT_TIMEOUT_MINUTES=1 variant — test fails with a Kotest timeout, not a Gradle hang
  • Default run (env var unset) — test reported as skipped

🤖 Generated with Claude Code

Make MavenSyncIntegrationTest distinguish slow from hung: configurable
test timeout via MAVEN_SYNC_IT_TIMEOUT_MINUTES (default 15m), per-artifact
INFO progress log, asset-listing heartbeat every 25 versions, and elapsed
time in the final summary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudshiftchris
cloudshiftchris merged commit 07ad38a into main May 12, 2026
1 of 2 checks passed
@cloudshiftchris
cloudshiftchris deleted the cloudshiftchris/merge-main branch May 12, 2026 16:15
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