Repository navigation
Fix upload failures: Deno validation and git-annex initialization - #33
Conversation
When creating a DataLad dataset on an existing directory with files, git-annex may not be fully initialized. This causes configureLargefiles to fail with 'git-annex: First run: git-annex init' error. Solution: Add explicit git annex init step after datalad create.
Previously, upload would warn and skip validation if Deno was not installed, allowing invalid BIDS datasets to be uploaded. Now fails with clear error and installation instructions if Deno is missing. Users can still use --skip-validation flag to bypass.
Comprehensive PR Review ResultsI've completed a detailed review using 5 specialized agents (code-reviewer, silent-failure-hunter, comment-analyzer, pr-test-analyzer, type-design-analyzer). Here are the findings:
|
- Remove duplicate checkDenoInstalled function from datalad.ts (already exists in bids-validator.ts) - Remove orphaned block braces in dataset.ts from refactoring - Add test coverage for Deno requirement enforcement - Add test coverage for git-annex init on existing directories These changes address the critical and important issues found during comprehensive PR review.
✅ Review Fixes AppliedI've addressed all critical and important issues found during the comprehensive review: Critical Fixes (commit 431787e)1. ✅ Removed Duplicate
|
Tests were added outside the describe block, causing ReferenceError for allPrereqsMet. Moved tests to the end of the describe block where they have access to all test fixtures.
✅ CI Status UpdatePassing checks:
Pending:
Skipped:
The critical tests (lint, unit-test, api-test) are all passing. The new tests added for PR #33 are included in the e2e-upload test file and will run when the full E2E suite is executed locally with credentials. |
Problem
Fixes #32
Two critical issues were blocking dataset uploads:
Deno validation skipped: When Deno was not installed, upload showed a warning but continued, allowing potentially invalid BIDS datasets to be uploaded.
git-annex not initialized: Upload failed with error "git-annex: First run: git-annex init" when creating a DataLad dataset on an existing directory with files.
Solution
Git-Annex Initialization (commit 1)
git annex initstep afterdatalad createincreateDataladDatasetfunctionconfigureLargefilesis calledDeno Requirement (commit 2)
--skip-validationflag (not recommended)Testing
Related