Repository navigation
Fix deletion cascade, test timeout, tag-triggered DOI CI, BIDS Name title, S3 cleanup - #170
Conversation
Add 30s timeout to all CLI subprocess tests that spawn bun processes for prerequisite checks. Closes #155
Extract DOI minting from pr-merge.yml into a standalone version-doi.yml workflow triggered on v* tag pushes. All paths (PR merge, admin push, manual tag) now converge through the tag trigger. Also creates GitHub release if missing and triggers archive generation. Closes #160
CLI upload now reads Name from dataset_description.json instead of using directory basename. The LLM enrichment webhook also syncs BIDS Name to D1 and GitHub repo description when dataset_description.json changes. Closes #168
Scan entire {datasetId}/ prefix instead of only objects/,
version/, archives/ sub-prefixes. Older uploads stored
files directly under the dataset root which were missed.
Closes #169
- Remove if: always() from trigger-archive job so it only runs when DOI publish succeeds - Check setRepoDescription return value instead of relying on try/catch (function returns result, does not throw) - Sanitize BIDS Name (strip newlines, trim to 200 chars) - Track user_s3_permissions deletion count in DeletionSteps - Distinguish ENOENT from parse errors in CLI BIDS Name read - Fix JSDoc and comments per review feedback
PR Review SummaryRan 5 review agents (code-reviewer, silent-failure-hunter, pr-test-analyzer, comment-analyzer, code-simplifier) in parallel. All findings addressed in commit 49e2eb8. Critical Issues (2 found, both fixed)
Important Issues (4 found, all fixed)
Suggestions (addressed where quick)
Test Results523 pass, 0 fail after all fixes. |
* Fix archive generation for SHA-addressed S3 storage (#165) * Fix archive generation for SHA-addressed S3 storage Use annex key (SHA hash) for S3 URL instead of BIDS file path. Replace process.exit(1) with process.exitCode for proper output flushing. Fixes #164 * Fix upload error propagation and entry event race * Point version DOI target to NEMAR page, not GitHub Version DOIs were resolving to the GitHub release page. Both concept and version DOIs should resolve to the NEMAR data explorer with appropriate query params. * Fix deletion cascade, test timeout, tag-triggered DOI CI, BIDS Name title, S3 cleanup (#170) * Fix deletion cascade: clean up user_s3_permissions Closes #149 * Fix flaky e2e-upload test timeout Add 30s timeout to all CLI subprocess tests that spawn bun processes for prerequisite checks. Closes #155 * Add tag-triggered CI for version DOI Extract DOI minting from pr-merge.yml into a standalone version-doi.yml workflow triggered on v* tag pushes. All paths (PR merge, admin push, manual tag) now converge through the tag trigger. Also creates GitHub release if missing and triggers archive generation. Closes #160 * Use BIDS Name as authoritative dataset title CLI upload now reads Name from dataset_description.json instead of using directory basename. The LLM enrichment webhook also syncs BIDS Name to D1 and GitHub repo description when dataset_description.json changes. Closes #168 * Fix S3 deletion to clean all objects under prefix Scan entire {datasetId}/ prefix instead of only objects/, version/, archives/ sub-prefixes. Older uploads stored files directly under the dataset root which were missed. Closes #169 * Address PR review findings - Remove if: always() from trigger-archive job so it only runs when DOI publish succeeds - Check setRepoDescription return value instead of relying on try/catch (function returns result, does not throw) - Sanitize BIDS Name (strip newlines, trim to 200 chars) - Track user_s3_permissions deletion count in DeletionSteps - Distinguish ENOENT from parse errors in CLI BIDS Name read - Fix JSDoc and comments per review feedback * Fix biome formatting * chore: bump version to 0.6.1
Summary
Five targeted fixes in a single branch:
user_s3_permissionscleanup to deletion cascade (was leaving orphaned permission rows)pr-merge.ymlinto standaloneversion-doi.ymlworkflow triggered byv*tag pushes. All paths (PR merge, admin push, manual tag) converge through the tag trigger. Also creates GitHub release if missing and triggers archive generation.Namefromdataset_description.jsoninstead of directory basename. LLM enrichment webhook syncs BIDS Name to D1 and GitHub repo description whendataset_description.jsonchanges.{datasetId}/prefix instead of onlyobjects/,version/,archives/sub-prefixes (older uploads stored files directly under dataset root)Test plan
bun testpasses (523 pass, 0 fail)user_s3_permissionscleaned upv*tag on nm099999, verifyversion-doi.ymlfires--name, verify BIDS Name is used as titleCloses #149, #155, #160, #168, #169