Skip to content

Fix screenshot workflow: derive versions at runtime, fix collector URL, assert no error pages#417

Open
MeloveGupta wants to merge 2 commits intoopen-telemetry:mainfrom
MeloveGupta:fix/screenshot-stale-versions-and-error-detection
Open

Fix screenshot workflow: derive versions at runtime, fix collector URL, assert no error pages#417
MeloveGupta wants to merge 2 commits intoopen-telemetry:mainfrom
MeloveGupta:fix/screenshot-stale-versions-and-error-detection

Conversation

@MeloveGupta
Copy link
Copy Markdown
Contributor

What

Fixes the screenshot workflow which was silently capturing and uploading error pages due to a stale hardcoded Java version and an invalid collector detail URL.


Changes

ecosystem-explorer/scripts/take-screenshots.mjs

  • Removed hardcoded DETAIL_VERSION = "2.25.0" - replaced with resolveLatestVersion() which reads public/data/javaagent/versions-index.json at runtime and picks the entry where is_latest: true. This prevents the script from going stale on every new release.
  • Added COLLECTOR_VERSION resolved the same way from public/data/collector/versions-index.json
  • Fixed collector detail URL from /collector/components/latest/receiver-otlp to /collector/components/${COLLECTOR_VERSION}/core-receiver-otlpreceiver
  • Added assertNoError() helper that checks for error or 404 headings after each navigation and throws if found, so the script exits non-zero instead of silently uploading error pages

.github/workflows/screenshots-capture.yml

  • Added VITE_FEATURE_FLAG_COLLECTOR_PAGE: "true" to the build step so the collector detail route is enabled in the production build used by the screenshot workflow

Before / After

Page Before After
Java instrumentation detail ❌ "Error loading instrumentation - Unexpected token '<'" ✅ Spring WebMVC detail, version 2.27.0
Collector detail ❌ "404 - Page Not Found" ✅ OTLP Receiver detail, version 0.150.0

Before:
Screenshot from 2026-05-10 02-17-11
Screenshot from 2026-05-10 02-17-35

After:
Screenshot from 2026-05-10 02-37-52
Screenshot from 2026-05-10 02-37-28


Verified By

  • Built with VITE_FEATURE_FLAG_COLLECTOR_PAGE=true bun run build
  • Ran node scripts/take-screenshots.mjs - with "All screenshots completed successfully!"
  • Confirmed screenshots/desktop-detail-details.png shows Spring WebMVC 2.27.0 detail page
  • Confirmed screenshots/desktop-collector-detail.png shows OTLP Receiver detail page
  • Confirmed reverting to old values causes the script to throw and exit non-zero

Type of Change

  • Bug fix
  • CI/tooling

Closes #415

@MeloveGupta MeloveGupta requested review from a team as code owners May 9, 2026 21:24
@netlify
Copy link
Copy Markdown

netlify Bot commented May 9, 2026

Deploy Preview for otel-ecosystem-explorer ready!

Name Link
🔨 Latest commit 9e6ea01
🔍 Latest deploy log https://app.netlify.com/projects/otel-ecosystem-explorer/deploys/69ffa751cc735e0008444e01
😎 Deploy Preview https://deploy-preview-417--otel-ecosystem-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@MeloveGupta
Copy link
Copy Markdown
Contributor Author

Hi @jaydeluca ,
I've raised this PR and I'd love to have your take on it...

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.

Screenshot workflow silently captures error pages due to stale hardcoded version and invalid collector URL

1 participant