Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/oetf-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ jobs:
# websocket-checks, ~5s) covers service+router+logger HTTP/WS;
# templates + mount-validation (~6s) submit workflows so
# backend-listener / backend-worker / osmo_ctrl runtime get
# touched.
# touched. workflow-labels exercises the label policy gate
# (off/warn/enforce), label-syntax validation, list filters, and a
# labeled round-trip through the API.
#
# --jobs=1 serializes: chart's single-replica ingress-nginx 504s
# under parallel scenario submits.
Expand All @@ -191,7 +193,7 @@ jobs:
bazel run //test/oetf:deploy_and_run -- \
--env kind --tags kind \
--target-pattern //test/smoke/... \
--target-pattern //test/scenarios:templates,//test/scenarios:mount-validation \
--target-pattern //test/scenarios:templates,//test/scenarios:mount-validation,//test/scenarios:workflow-labels \
--jobs 1 \
--build-local --use-local-registry \
--keep --keep-on-failure \
Expand Down
30 changes: 30 additions & 0 deletions test/scenarios/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ oetf_scenario_test(
tags = ["template", "negative", "kind"],
)

# Workflow labels: two targets from one file, split by test class.
#
# :workflow-labels (WorkflowLabels) — the KIND-safe subset: policy gate
# off/warn/enforce via validation-only submits, label-syntax rejection, list
# filters, and a submit-time labeled round-trip. `exclusive` (runs alone)
# because the policy tests mutate the shared labels_config, each restoring
# the baseline in tearDown. `kind` = runs in the `oetf:deploy_and_run --env
# kind` CI gate.
#
# :workflow-labels-lifecycle (WorkflowLabelsLifecycle) — the heavy subset:
# runs labeled workflows to a terminal status (COMPLETED and FAILED) and
# asserts the labels survive the full run. Deliberately NOT tagged `kind` and
# NOT listed in oetf-kind.yaml — the PR gate runs only validation scenarios,
# not workflows to completion — so it runs against a real deployment.
oetf_scenario_test(
name = "workflow-labels",
src = "workflow_labels.py",
data = ["workflow_labels.yaml"],
test_filter = "WorkflowLabels",
tags = ["labels", "policy", "exclusive", "kind", "positive"],
)

oetf_scenario_test(
name = "workflow-labels-lifecycle",
src = "workflow_labels.py",
data = ["workflow_labels.yaml"],
test_filter = "WorkflowLabelsLifecycle",
tags = ["labels", "lifecycle", "positive"],
)

# --- Split slow files: one Bazel target per test method.
# Each target runs exactly one unittest method (via args=[<Class.test_*>])
# so `bazel test` can parallelize them. Target name = sluggified test name.
Expand Down
Loading
Loading