summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-07-21Replace StoreResult with plain ResultAlexander Batischev1-6/+3
2021-07-21Replace IndexedResult with plain ResultAlexander Batischev1-11/+8
2021-07-21Replace IndexResult with plain ResultAlexander Batischev1-19/+16
2021-07-21Replace LocalGenerationResult with plain ResultAlexander Batischev1-24/+32
I do not plan to simplify the `T` in the return type of `get_file_and_fileno` because that function is only ever called from inside the module; it doesn't seem worthwhile to introduce a new type there.
2021-07-21Replace NascentResult with plain ResultAlexander Batischev1-5/+3
2021-07-21Replace FsIterResult with plain ResultAlexander Batischev2-8/+6
2021-07-21Replace FsEntryResult with plain ResultAlexander Batischev1-4/+2
2021-07-21Replace ClientConfigResult with plain ResultAlexander Batischev1-3/+1
2021-07-21Replace RestoreResult with plain ResultAlexander Batischev1-11/+9
2021-07-21Replace ClientResult with plain ResultAlexander Batischev1-20/+22
2021-07-21Replace ChunkerResult with plain ResultAlexander Batischev1-5/+3
2021-07-21Replace GenerationChunkResult with plain ResultAlexander Batischev1-5/+2
2021-07-21backup_run: replace tuple with a structAlexander Batischev2-9/+25
2021-07-21Replace BackupResult with plain ResultAlexander Batischev2-7/+8
2021-07-21In errors, store chunk ids as `ChunkId`, not `String`Alexander Batischev2-4/+6
Fixes #114.
2021-07-19Merge branch 'pywrite' into 'main'Lars Wirzenius2-4/+8
test: use better way to write files in Python See merge request obnam/obnam!164
2021-07-19test: use better way to write files in PythonLars Wirzenius2-4/+8
"open(...).write(...)" does not necessarily close the file, and thus flush buffered writes to disk. "with open(...)" does. Sponsored-by: author
2021-07-18Merge branch 'async-chunking' into 'main'Lars Wirzenius11-12/+422
Add some machinery for async processing of things See merge request obnam/obnam!162
2021-07-18docs: clarify comments in engine.rsLars Wirzenius1-2/+2
As proposed by Alexander Batischev. Sponsored-by: author
2021-07-18test: add scenario to verify chunkify worksLars Wirzenius3-11/+66
Sponsored-by: author
2021-07-18fix: use an explicit tokio runtimeLars Wirzenius1-2/+3
Create a tokio runtime so that the non-async function for chunkify can call an async function and have that create and run background tasks. Brown paper bag mistake: I did the development of this in a separate program with an async main function. When I integrated it into Obnam proper, which doesn't have an async main function (yet), I didn't actually test it works, only that it compiles. Stupid, stupid, stupid. I know better. Sponsored-by: author
2021-07-18feat: add "chunkify" subcommandLars Wirzenius3-0/+108
Sponsored-by: author
2021-07-18feat: add Engine and WorkQueue abstractions for async processingLars Wirzenius5-1/+247
Many thanks to Daniel Silverstone for helping me get through this. Sponsored-by: author
2021-07-16Merge branch 'subplot-needs' into 'main'Alexander Batischev2-0/+33
Improve build-depencency docs/checks Closes #111 See merge request obnam/obnam!163
2021-07-16test: have ./check verify all needed tools are installedLars Wirzenius1-0/+23
Sponsored-by: author
2021-07-16docs: document Rust as a build dependencyLars Wirzenius1-0/+10
Sponsored-by: author
2021-07-05Merge branch 'asyncify' into 'main'Lars Wirzenius4-140/+97
Refactor backup_run to make async easier to add, later See merge request obnam/obnam!160
2021-07-05refactor: code to run backups to have less repetitionLars Wirzenius3-132/+86
This should make it easier to introduce async, later.
2021-07-05refactor: have main explicitly print error messageLars Wirzenius1-8/+11
This is a little cleaner than having main print an error message by returning an Err value as a Result. For one thing, we can be more sure we log the error. Sponsored-by: author
2021-06-23Merge branch 'feature/ndash-to-mdash' into 'main'Lars Wirzenius2-32/+32
Replace n-dashes with m-dashes See merge request obnam/obnam!161
2021-06-22Replace n-dashes with m-dashesAlexander Batischev2-32/+32
Cf. https://gitlab.com/obnam/obnam/-/merge_requests/158#note_605879696
2021-06-20Merge branch 'deps' into 'main'Lars Wirzenius1-0/+50
docs: document dependencies in README See merge request obnam/obnam!158
2021-06-19Merge branch 'feature/migrate-ci-to-docker' into 'main'Alexander Batischev1-29/+9
migrate CI to Docker See merge request obnam/obnam!157
2021-06-19Merge branch 'dep-update' into 'main'Lars Wirzenius4-456/+206
update dependency versions See merge request obnam/obnam!159
2021-06-19chore: new cargo updateLars Wirzenius1-31/+34
Things changed while I worked through the manual changes. Update Cargo.lock to be current again. Sponsored-by: author
2021-06-19chore: bump dependency on indicatif to 0.16, and fix what's neededLars Wirzenius4-11/+8
Change calls to set_message to pass ownership of the message, rather than just letting it borrow the message. Sponsored-by: author
2021-06-19chore: bump dependency on rusqlite to 0.25Lars Wirzenius2-11/+22
Sponsored-by: author
2021-06-19chore: bump dependency on pbkdf2 to 0.8Lars Wirzenius2-9/+10
Sponsored-by: author
2021-06-19chore: change dependency on aes-gcm be less stringentLars Wirzenius1-1/+1
Change the version of aes-gcm to be 0.9, from 0.9.1. This allows a future 0.9.2 to be used automatically. Sponsored-by: author
2021-06-19chore: update warp and tokio dependenciesLars Wirzenius2-379/+117
tokio has released 1.0. Bump the warp dependency to get a version that works with tokio 1.x. Sponsored-by: author
2021-06-19chore: cargo updateLars Wirzenius1-18/+18
This are the changes made by running `cargo update`. Sponsored-by: author
2021-06-19docs: document dependencies in READMELars Wirzenius1-0/+50
Sponsored-by: author
2021-06-19Merge branch 'feature/restore-symlink-metadata' into 'main'Lars Wirzenius1-7/+14
feat: restore symlink metadata See merge request obnam/obnam!154
2021-06-15Migrate CI to DockerAlexander Batischev1-29/+9
2021-06-13Merge branch 'hmm' into 'main'Lars Wirzenius3-20/+25
Sync gitlab with my local changes See merge request obnam/obnam!156
2021-06-13Merge ssh://gitlab.com/obnam/obnam into mainLars Wirzenius2-11/+18
2021-06-13Merge branch 'bugfix/124-link-readme-to-html' into 'main'Lars Wirzenius1-2/+5
fix(readme.md): link to rendered versions of other docs Closes #124 See merge request obnam/obnam!155
2021-06-13fix(readme.md): link to rendered versions of other docsAlexander Batischev1-2/+5
Fixes #124. I chose not to change the names of the link, they still say ".md". My hope is that a person reading the Markdown document will understand that we mean the .md document in this repo, and the person reading HTML will have a valid link to doc.obnam.org.
2021-06-13feat: restore symlink metadataAlexander Batischev1-7/+14
The weird thing about this commit is that all the tests for it already exist: the subplot compares manifests of "live" and restored data, and that includes the mtime. The subplot passes on CI, and it passed for me too — until today. Today, if I run `./check` on the main branch (which is currently at 481c5d8df21c72db3a3d76e851d25426f3e40647), subplot fails because the symlinks' mtime is wrong. Most often it's just the nsec part that's wrong: tests run fast enough that they finish within a second, and they rarely happen at the edge of the second. I don't understand why this didn't happen to me before, and why it doesn't happen to CI — and to Lars, for that matter. git-bisect points at 755c18a11f87040245964cf411ea8f518b61e0f5, which is a couple months old, so we should've spotted the breakage by now. Needless to say, I didn't do any major overhauls of my system lately, just your usual `apt upgrade` (Debian bullseye/testing amd64). Did some change in Subplot or Summain obfuscate this? It bothers me that I don't understand how we could miss this for so long.
2021-06-06Merge branch 'feature/tutorial-passphrase-cleanup' into 'main'Lars Wirzenius1-9/+13
doc(tutorial.md): explain that passphrase is ephemeral See merge request larswirzenius/obnam!153