Skip to content

test(e2e): pick datasets with an uploaded version, not v0 leftovers - #56

Merged
tanmaykm merged 2 commits into
mainfrom
tan/e2e-dataset-version-aware
Aug 24, 2026
Merged

test(e2e): pick datasets with an uploaded version, not v0 leftovers#56
tanmaykm merged 2 commits into
mainfrom
tan/e2e-dataset-version-aware

Conversation

@tanmaykm

Copy link
Copy Markdown
Member

Fixes #55.

Since #54, the e2e dataset tests pick the first dataset of the right type from jh dataset list — but firstIDOfType never looks at the Version: line. On nightly-juliahub the first Blob in the UUID-ordered listing is a 0-byte Version: v0 leftover (created by an integration test's CORS check that never uploads), so TestDatasetStatusFirst/TestDatasetDownloadFirst trip the CLI's own "no versions available for dataset" fail-fast — red every nightly since #54 merged (08-20, 08-21, 08-24).

Changes:

  • firstIDOfType now also requires Version: v[1-9][0-9]* within the entry block, so only datasets with at least one uploaded version drive the happy-path tests. Applies to all four *First/*FirstBlobTree tests (a v0 BlobTree would misfire the same way).
  • TestFirstIDOfType (credential-less parse pin) extended: a Version: v0 entry and an entry with no Version: line must both be skipped.
  • Skip messages/comments updated to say "with an uploaded version".

Verified: go test -tags e2e -run TestFirstIDOfType ./e2e passes; gofmt clean.

@tanmaykm
tanmaykm requested a review from a team August 24, 2026 10:28
@tanmaykm
tanmaykm merged commit 51690a5 into main Aug 24, 2026
1 check passed
@tanmaykm
tanmaykm deleted the tan/e2e-dataset-version-aware branch August 24, 2026 11:04
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.

e2e dataset tests pick version-less (v0) datasets; nightly-juliahub red since #54

2 participants