Skip to content

Commit

Permalink
Add support for release-plz (#531)
Browse files Browse the repository at this point in the history
* Add support for release-plz

Signed-off-by: Moritz Hoffmann <[email protected]>

* Only publish differential-dataflow and differential-dogs3

Signed-off-by: Moritz Hoffmann <[email protected]>

* Separate changelogs

Signed-off-by: Moritz Hoffmann <[email protected]>

* Fix tests

Signed-off-by: Moritz Hoffmann <[email protected]>

---------

Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru authored Oct 29, 2024
1 parent 15544db commit 93c9ae8
Show file tree
Hide file tree
Showing 19 changed files with 85 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
# Check for updates every Monday
schedule:
interval: "weekly"

27 changes: 27 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- master

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.DIFFERENTIAL_RELEASE_PLZ }}
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ fnv="1.0.2"
timely = {workspace = true}

[workspace.dependencies]
#timely = { version = "0.12", default-features = false }
timely = { git = "https://github.com/TimelyDataflow/timely-dataflow", default-features = false }
timely = { version = "0.13", default-features = false }
#timely = { path = "../timely-dataflow/timely/", default-features = false }

[features]
Expand Down
3 changes: 2 additions & 1 deletion advent_of_code_2017/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "advent_of_code_2017"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
publish = false

[dependencies]
differential-dataflow = { path = "../" }
timely = { git = "https://github.com/frankmcsherry/timely-dataflow" }
timely = { git = "https://github.com/frankmcsherry/timely-dataflow" }
5 changes: 2 additions & 3 deletions dogsdogsdogs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "dogsdogsdogs"
name = "differential-dogs3"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
license = "MIT"
Expand All @@ -8,8 +8,7 @@ edition = "2021"
[dependencies]
timely = { workspace = true }
differential-dataflow = { path = "../", default-features = false }
serde = "1"
serde_derive = "1"
serde = { version = "1.0", features = ["derive"]}

[dev-dependencies]
graph_map = "0.1"
Expand Down
8 changes: 4 additions & 4 deletions dogsdogsdogs/examples/delta_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use differential_dataflow::input::Input;
use differential_dataflow::operators::JoinCore;
use graph_map::GraphMMap;

use dogsdogsdogs::altneu::AltNeu;
use dogsdogsdogs::calculus::{Differentiate, Integrate};
use differential_dogs3::altneu::AltNeu;
use differential_dogs3::calculus::{Differentiate, Integrate};

fn main() {

Expand Down Expand Up @@ -74,8 +74,8 @@ fn main() {
let key1 = |x: &(u32, u32)| x.0;
let key2 = |x: &(u32, u32)| x.1;

use dogsdogsdogs::operators::propose;
use dogsdogsdogs::operators::validate;
use differential_dogs3::operators::propose;
use differential_dogs3::operators::validate;

// Prior technology
// dQ/dE1 := dE1(a,b), E2(b,c), E3(a,c)
Expand Down
2 changes: 1 addition & 1 deletion dogsdogsdogs/examples/delta_query2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() {
let changes1 = edges1.inner.map(|((k,v),t,r)| ((k,v,t.clone()),t,r)).as_collection();
let changes2 = edges2.inner.map(|((k,v),t,r)| ((k,v,t.clone()),t,r)).as_collection();

use dogsdogsdogs::operators::half_join;
use differential_dogs3::operators::half_join;

// pick a frontier that will not mislead TOTAL ORDER comparisons.
let closure = |time: &Product<usize, usize>, antichain: &mut timely::progress::Antichain<Product<usize, usize>>| {
Expand Down
6 changes: 3 additions & 3 deletions dogsdogsdogs/examples/delta_query_wcoj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use timely::dataflow::operators::probe::Handle;
use differential_dataflow::input::Input;
use graph_map::GraphMMap;

use dogsdogsdogs::{CollectionIndex, altneu::AltNeu};
use dogsdogsdogs::{ProposeExtensionMethod};
use differential_dogs3::{CollectionIndex, altneu::AltNeu};
use differential_dogs3::{ProposeExtensionMethod};

fn main() {

Expand Down Expand Up @@ -107,4 +107,4 @@ fn main() {
}

}).unwrap();
}
}
4 changes: 2 additions & 2 deletions dogsdogsdogs/examples/dogsdogsdogs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use differential_dataflow::{Collection, AsCollection};
use differential_dataflow::input::Input;
use graph_map::GraphMMap;

use dogsdogsdogs::{CollectionIndex, PrefixExtender};
use differential_dogs3::{CollectionIndex, PrefixExtender};

fn main() {

Expand Down Expand Up @@ -86,4 +86,4 @@ fn main() {
}

}).unwrap();
}
}
2 changes: 1 addition & 1 deletion dogsdogsdogs/src/altneu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! element of the second lattice, if neither first element equals
//! the join.

use serde_derive::{Deserialize, Serialize};
use serde::{Deserialize, Serialize};

/// A pair of timestamps, partially ordered by the product order.
#[derive(Debug, Hash, Default, Clone, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)]
Expand Down
3 changes: 2 additions & 1 deletion doop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name = "doop"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
indexmap = "2.1"
timely = {workspace = true}
differential-dataflow = { path = "../" }
differential-dataflow = { path = "../" }
3 changes: 2 additions & 1 deletion experiments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "experiments"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
core_affinity = "0.5.9"
Expand All @@ -11,4 +12,4 @@ rand="0.3.13"
timely = { workspace = true }
differential-dataflow = { path = "../" }
graph_map = { git = "https://github.com/frankmcsherry/graph-map" }
serde = { version = "1.0.190", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
3 changes: 2 additions & 1 deletion interactive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name = "interactive"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
bincode = "1"
serde = { version = "1", features = ["derive"]}
differential-dataflow = { path = "../" }
dogsdogsdogs = { path = "../dogsdogsdogs" }
timely = { git = "https://github.com/TimelyDataflow/timely-dataflow", features = ["bincode"] }
#timely = { path = "../../timely-dataflow/timely", features = ["bincode"] }
#timely = { path = "../../timely-dataflow/timely", features = ["bincode"] }
19 changes: 19 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[workspace]
# disable the changelog for all packages
changelog_update = false
# disable releasing all packages
release = false

[[package]]
name = "differential-dataflow"
# enable releasing package
release = true
# enable the changelog for this package
changelog_update = true

[[package]]
name = "differential-dogs3"
# enable releasing package
release = true
# enable the changelog for this package
changelog_update = true
1 change: 1 addition & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "dd_server"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies.differential-dataflow]
path="../"
Expand Down
3 changes: 2 additions & 1 deletion server/dataflows/degr_dist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name = "degr_dist"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
timely = { workspace = true }
differential-dataflow = { path = "../../../" }
dd_server = { path = "../../" }

[lib]
crate-type = ["dylib"]
crate-type = ["dylib"]
3 changes: 2 additions & 1 deletion server/dataflows/neighborhood/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name = "neighborhood"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
differential-dataflow = { path = "../../../" }
dd_server = { path = "../../" }

[lib]
crate-type = ["dylib"]
crate-type = ["dylib"]
3 changes: 2 additions & 1 deletion server/dataflows/random_graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "random_graph"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
timely = {workspace = true}
Expand All @@ -13,4 +14,4 @@ rand="0.3.13"
hdrhist = { git = "https://github.com/utaal/hdrhist" }

[lib]
crate-type = ["dylib"]
crate-type = ["dylib"]
3 changes: 2 additions & 1 deletion server/dataflows/reachability/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name = "reachability"
version = "0.1.0"
authors = ["Frank McSherry <[email protected]>"]
edition = "2021"
publish = false

[dependencies]
differential-dataflow = { path = "../../../" }
dd_server = { path = "../../" }

[lib]
crate-type = ["dylib"]
crate-type = ["dylib"]

0 comments on commit 93c9ae8

Please sign in to comment.