Skip to content

fix(obscura): hermetic file:// test (closes #13095)#13102

Open
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:fix/obscura-test-network
Open

fix(obscura): hermetic file:// test (closes #13095)#13102
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:fix/obscura-test-network

Conversation

@tannevaled
Copy link
Copy Markdown
Contributor

Summary

The current test calls obscura fetch https://pkgx.dev/ which depends on outbound network from each linux test-distro container. The ubuntu test image either blocks egress or hit a transient pkgx.dev outage; the failure

Network error: Failed to navigate to https://pkgx.dev/

has been auto-firing #13095 on every retry.

Generate a tiny HTML fixture in the test step and feed obscura a file:// URL pointing at it. Still exercises the URL-fetch + document.title --eval JS path; no network needed.

Closes #13095.

Test plan

  • CI green on *nix64 / *nix·ARM64 / ² / x64
  • Verify all four test-distro variants now pass (ubuntu / archlinux:base / debian:buster-slim were cancelled-or-failed before)

🤖 Generated with Claude Code

The previous test step fetched https://pkgx.dev/ via obscura's URL
load + JS eval — a meaningful E2E but it depends on outbound network
from each test-distro container. The ubuntu image either blocks
egress or had a transient pkgx.dev outage; the failure
  "Network error: Failed to navigate to https://pkgx.dev/"
has been auto-firing pkgxdev#13095 on every retry.

Generate a tiny HTML fixture in the test step and feed obscura a
`file://` URL pointing at it. Still exercises the URL-fetch +
`document.title` JS-eval path, no network required.

Closes pkgxdev#13095.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

❌ build issues: github.com/h4ckf0r0day/obscura=0.1.6

1 participant