Skip to content

Commit 5476219

Browse files
committed
v0.7.0
1 parent ab6df36 commit 5476219

File tree

9 files changed

+16
-71
lines changed

9 files changed

+16
-71
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ actix-rt = "2"
2626
tempfile = "3"
2727
pretty_assertions = "1"
2828
temp-env = "0.3"
29-
tokio = { version = "*", features = ["rt", "macros"] }
29+
tokio = { version = "1.47", features = ["rt", "macros"] }
3030
tokio-postgres = { version = "0.7.13", features = ["with-uuid-1"] }
3131
bb8 = "0.9.0"
3232
bb8-postgres = { version = "0.9.0", features = ["with-uuid-1"] }

RELEASING.md

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
1. Run `cargo test`
55
1. Run `cargo clean && cargo clippy`
66
1. Remove the `-pre` from `version` in all `*/Cargo.toml`, and from the `version = ..` in any references between packages.
7-
1. Update the link to `docker-compose.yml` in `README.md` to refer to the new version.
7+
1. Update the link to `docker-compose.yml` in `docs/src/usage/docker-compose.md` to refer to the new version.
88
1. Update the docker image in `docker-compose.yml` to refer to the new version.
99
1. Run `cargo semver-checks` (https://crates.io/crates/cargo-semver-checks)
1010
1. Run `cargo build --release`
@@ -13,65 +13,10 @@
1313
1. Run `git push upstream`
1414
1. Run `git push upstream --tag vX.Y.Z`
1515
1. Run `cargo publish -p taskchampion-sync-server-core`
16-
1. Run `cargo publish -p taskchampion-sync-server-storage-sqlite` (and add any other new published packages here)
16+
1. Run `cargo publish -p taskchampion-sync-server-storage-sqlite`
17+
1. Run `cargo publish -p taskchampion-sync-server-storage-postgres` (and add any other new published packages here)
1718
1. Bump the patch version in `*/Cargo.toml` and add the `-pre` suffix. This allows `cargo-semver-checks` to check for changes not accounted for in the version delta.
1819
1. Run `cargo build --release` again to update `Cargo.lock`
1920
1. Commit that change with comment "Bump to -pre version".
2021
1. Run `git push upstream`
2122
1. Navigate to the tag in the GitHub releases UI and create a release with general comments about the changes in the release
22-
23-
---
24-
25-
For the next release,
26-
27-
- remove postgres from the exclusion list in `.github/workflows/checks.yml` after the release
28-
29-
- include the folowing in the release notes:
30-
31-
Running the Docker image for this server without specifying DATA_DIR
32-
defaulted to storing the server data in
33-
`/var/lib/taskchampion-sync-server`. However, the Dockerfile only
34-
specifies that the subdirectory `/var/lib/taskchampion-sync-server/data`
35-
is a VOLUME. This change fixes the default to match the VOLUME, putting
36-
the server data on an ephemeral volume or, if a `--volume
37-
$NAME:/var/lib/taskchampion-sync-server/data` argument is provided to
38-
`docker run`, in a named volume.
39-
40-
Before this commit, with default settings the server data is stored in
41-
the container's ephemeral writeable layer. When the container is killed,
42-
the data is lost. This issue does not affect deployments with `docker
43-
compose`, as the compose configuration specifies a correct `DATA_DIR`.
44-
45-
You can determine if your deployment is affected as follows. First,
46-
determine the ID of the running server container, `$CONTAINER`. Examine
47-
the volumes for that container:
48-
49-
```shell
50-
$ docker container inspect $CONTAINER | jq '.[0].Config.Volumes'
51-
{
52-
"/var/lib/task-champion-sync-server/data": {}
53-
}
54-
```
55-
56-
Next, find the server data, in a `.sqlite3` file:
57-
58-
```shell
59-
$ docker exec $CONTAINER find /var/lib/taskchampion-sync-server
60-
/var/lib/taskchampion-sync-server
61-
/var/lib/taskchampion-sync-server/data
62-
/var/lib/taskchampion-sync-server/taskchampion-sync-server.sqlite3
63-
```
64-
65-
If the data is not in a directory mounted as a volume, then it is
66-
ephemeral. To copy the data out of the container:
67-
68-
```shell
69-
docker cp $CONTAINER:/var/lib/taskchampion-sync-server/taskchampion-sync-server.sqlite3 /tmp
70-
```
71-
72-
You may then upgrade the image and use `docker cp` to copy the data back
73-
to the correct location, `/var/lib/taskchampion-sync-server/data`.
74-
75-
Note that, as long as all replicas are fully synced, the TaskChampion
76-
sync protocol is resilient to loss of server data, so even if the server
77-
data has been lost, `task sync` may continue to work.

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taskchampion-sync-server-core"
3-
version = "0.7.0-pre"
3+
version = "0.7.0"
44
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
55
edition = "2021"
66
description = "Core of sync protocol for TaskChampion"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
condition: service_completed_successfully
4444

4545
tss:
46-
image: ghcr.io/gothenburgbitfactory/taskchampion-sync-server:0.6.1
46+
image: ghcr.io/gothenburgbitfactory/taskchampion-sync-server:0.7.0
4747
restart: unless-stopped
4848
environment:
4949
- "RUST_LOG=info"

docs/src/usage/docker-compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Docker Compose
22

33
The
4-
[`docker-compose.yml`](https://raw.githubusercontent.com/GothenburgBitFactory/taskchampion-sync-server/refs/tags/v0.6.1/docker-compose.yml)
4+
[`docker-compose.yml`](https://raw.githubusercontent.com/GothenburgBitFactory/taskchampion-sync-server/refs/tags/v0.7.0/docker-compose.yml)
55
file in this repository is sufficient to run taskchampion-sync-server,
66
including setting up TLS certificates using Lets Encrypt, thanks to
77
[Caddy](https://caddyserver.com/). This setup uses the SQLite backend, which is

postgres/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taskchampion-sync-server-storage-postgres"
3-
version = "0.7.0-pre"
3+
version = "0.7.0"
44
authors = ["Dustin J. Mitchell <dustin@v.igoro.us>"]
55
edition = "2021"
66
description = "Postgres backend for TaskChampion-sync-server"
@@ -16,7 +16,7 @@ bb8.workspace = true
1616
chrono.workspace = true
1717
env_logger.workspace = true
1818
log.workspace = true
19-
taskchampion-sync-server-core = { path = "../core", version = "0.7.0-pre" }
19+
taskchampion-sync-server-core = { path = "../core", version = "0.7.0" }
2020
thiserror.workspace = true
2121
tokio-postgres.workspace = true
2222
tokio.workspace = true

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taskchampion-sync-server"
3-
version = "0.7.0-pre"
3+
version = "0.7.0"
44
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
55
edition = "2021"
66
publish = false

sqlite/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taskchampion-sync-server-storage-sqlite"
3-
version = "0.7.0-pre"
3+
version = "0.7.0"
44
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
55
edition = "2021"
66
description = "SQLite backend for TaskChampion-sync-server"
@@ -9,7 +9,7 @@ repository = "https://github.com/GothenburgBitFactory/taskchampion-sync-server"
99
license = "MIT"
1010

1111
[dependencies]
12-
taskchampion-sync-server-core = { path = "../core", version = "0.7.0-pre" }
12+
taskchampion-sync-server-core = { path = "../core", version = "0.7.0" }
1313
async-trait.workspace = true
1414
uuid.workspace = true
1515
anyhow.workspace = true

0 commit comments

Comments
 (0)