Skip to content

Commit cd9b850

Browse files
Add "incubating" feature flag
This feature flag is intended to support merging code that is not considered ready to commit to backward compatibility.
1 parent e970236 commit cd9b850

File tree

11 files changed

+53
-4
lines changed

11 files changed

+53
-4
lines changed

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,25 @@ jobs:
5353
( cd josh-ssh-dev-server ; go build -o "${CARGO_TARGET_DIR}/josh-ssh-dev-server" )
5454
sh run-tests.sh --verbose tests/filter/**.t
5555
sh run-tests.sh --verbose tests/proxy/**.t
56+
sh run-tests.sh --verbose tests/cli/**.t
57+
58+
- name: Run tests (incubating)
59+
uses: addnab/docker-run-action@v3
60+
with:
61+
image: josh-ci-dev:latest
62+
options: -v ${{ github.workspace }}:/github/workspace -w /github/workspace
63+
run: |
64+
set -e -x
65+
66+
# Formatting
67+
cargo fmt -- --check
68+
69+
# Unit tests
70+
cargo test --workspace --all --features incubating
71+
72+
# Integration tests
73+
cargo build --workspace --all-targets --features hyper_cgi/test-server --features incubating
74+
( cd josh-ssh-dev-server ; go build -o "${CARGO_TARGET_DIR}/josh-ssh-dev-server" )
75+
sh run-tests.sh --verbose tests/filter/**.t
76+
sh run-tests.sh --verbose tests/proxy/**.t
77+
sh run-tests.sh --verbose tests/cli/**.t

josh-cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ clap = { workspace = true }
2222
rs_tracing = { workspace = true }
2323
juniper = { workspace = true }
2424
git2 = { workspace = true }
25+
26+
[features]
27+
incubating = []

josh-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ serde_json = { workspace = true }
3434
serde_yaml = { workspace = true }
3535
sled = "0.34.7"
3636
tracing = { workspace = true }
37+
38+
[features]
39+
incubating = []

josh-filter/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ clap = { workspace = true }
2020
rs_tracing = { workspace = true }
2121
juniper = { workspace = true }
2222
git2 = { workspace = true }
23+
24+
[features]
25+
incubating = []

josh-graphql/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ tracing = { workspace = true }
1919
default-features = false
2020
features = ["alloc", "std"]
2121
version = "0.4.42"
22+
23+
[features]
24+
incubating = []

josh-proxy/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ opentelemetry = "0.31.0"
5353
opentelemetry-semantic-conventions = "0.31.0"
5454
opentelemetry-otlp = { version = "0.31.0", features = ["grpc-tonic", "trace"] }
5555
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
56+
57+
[features]
58+
incubating = []

josh-rpc/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ edition = "2024"
77
serde = { workspace = true }
88
tokio = { workspace = true }
99
libc = { workspace = true }
10+
11+
[features]
12+
incubating = []

josh-ssh-shell/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ tokio-util = { workspace = true }
1616
thiserror = "2.0.17"
1717
tempfile = { workspace = true }
1818
reqwest = { workspace = true }
19+
20+
[features]
21+
incubating = []

josh-templates/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ juniper = { workspace = true }
1111
serde_json = { workspace = true }
1212
handlebars = "6.2.0"
1313
form_urlencoded = "1.2.2"
14+
15+
[features]
16+
incubating = []

josh-ui/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ dircpy = "0.3.19"
99

1010
[lib]
1111
path = 'lib.rs'
12+
13+
[features]
14+
incubating = []

0 commit comments

Comments
 (0)