-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/gitannex: Add layout modes for compatibility #7754
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b3590d2 - Browse repository at this point
Copy the full SHA b3590d2View commit details -
cmd/gitannex: Add support for different layouts
This commit adds support for the same repo layouts supported by git-annex-remote-rclone. This should enable git-annex users with remotes of type "rclone" to switch to a "rclone-builtin" without needing to retransfer content. Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for c2d46e4 - Browse repository at this point
Copy the full SHA c2d46e4View commit details -
cmd/gitannex: Refactor e2e tests, add layout compat tests
TestEndToEndRepoLayoutCompat exercises git-annex-remote-rclone-builtin and git-annex-remote-rclone on the same rclone remote to ensure they are compatible. It repeats the same test for all known layout modes. Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for ed72e48 - Browse repository at this point
Copy the full SHA ed72e48View commit details -
cmd/gitannex: Repeat TestEndToEnd for all layout modes
I'm hopeful that running these in parallel will not impact CI runtime very much, but that likely depends on the number of CPU cores and whether the tmp filesystem is backed by memory vs a physical disk. Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for 8734d75 - Browse repository at this point
Copy the full SHA 8734d75View commit details -
cmd/gitannex: Drop chdir from e2e tests
Now that e2e tests are running in parallel, undoing the chdir to the temp dir was causing flaky failures on cleanup. We don't need it anyway because the worrisome subcommands have their working directory controlled by `runInRepo()`. Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for b60f99e - Browse repository at this point
Copy the full SHA b60f99eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba40332 - Browse repository at this point
Copy the full SHA ba40332View commit details -
cmd/gitannex: Add TestEndToEndMigration tests
For each layout mode, these tests start with a git-annex-remote-rclone remote, migrate it to a git-annex-remote-rclone-builtin remote. They verify that a file copied pre-migration is still present and that `git annex testremote` passes. Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for 3bb5fec - Browse repository at this point
Copy the full SHA 3bb5fecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 019f91b - Browse repository at this point
Copy the full SHA 019f91bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cbf9a2 - Browse repository at this point
Copy the full SHA 1cbf9a2View commit details -
build: Inject rclone version tag when testing
This enables gitannex end-to-end tests to run on CI. Otherwise, the version would not match and tests that check the rclone version would fail like so: ``` === RUN TestEndToEnd e2e_test.go:199: Skipping due to rclone version: expected version "v1.67.0-DEV", but got "v1.67.0-beta.7905.220bbe24d.merge" --- SKIP: TestEndToEnd (0.07s) ``` Issue rclone#7625
Configuration menu - View commit details
-
Copy full SHA for 6370301 - Browse repository at this point
Copy the full SHA 6370301View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2196bf - Browse repository at this point
Copy the full SHA d2196bfView commit details