Skip to content

Conversation

@rom1504
Copy link
Member

@rom1504 rom1504 commented Sep 7, 2025

Implements comprehensive testing for the PrismarineJS automation pipeline.

Features

  • End-to-End Test Workflow: test-automation-e2e.yml

  • Generates test versions (1.99.99-test-TIMESTAMP)

  • Creates test PRs with [TEST] prefix

  • Triggers downstream repos (node-minecraft-protocol to mineflayer)

  • Validates full automation chain

  • Auto-cleanup after completion

  • Daily Cleanup: cleanup-test-artifacts.yml

  • Removes test PRs/branches older than 24 hours

  • Runs daily at 02:00 UTC

  • Prevents test pollution in repos

Benefits

  • Validates automation before releases
  • Detects breaking changes early
  • Keeps repos clean of test artifacts
  • Provides detailed test reports

This ensures the same token permissions across all automation workflows in the PrismarineJS ecosystem.
- test-automation-e2e.yml: Comprehensive E2E test for automation chain
- cleanup-test-artifacts.yml: Daily cleanup of test PRs and branches
- Uses test versions (1.99.99-test-*) to avoid production pollution
- Auto-triggers downstream repos and validates full chain
- Includes cleanup mechanism and detailed reporting
- Replace complex orchestration with simple generator trigger
- Let existing automation chain handle the rest automatically
- Much cleaner and follows the actual production flow
This is the most natural test - simulate what happens when the
cron job runs and detects a new version. Let the entire automation
chain run exactly as it does in production.
- Modified update-helper.yml to accept test_version parameter
- Updated helper bot to handle TEST_VERSION env var
- Test version triggers full automation chain naturally
- E2E test now passes test version to update-helper
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