Skip to content

Commit

Permalink
Update bundle tests to have default health values
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Johnson committed Nov 8, 2023
1 parent 44e4e9e commit b727bce
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
6 changes: 5 additions & 1 deletion tests/codegen/expected_bundles/dev_bundle_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ environments:
email_notifications: null
notification_settings: null
webhook_notifications: null
health: null
health:
rules:
- metric: "RUN_DURATION_SECONDS"
op: "GREATER_THAN"
value: 7200.0
git_source:
git_commit: a
git_provider: github
Expand Down
6 changes: 5 additions & 1 deletion tests/codegen/expected_bundles/dev_bundle_polyrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ environments:
email_notifications: null
notification_settings: null
webhook_notifications: null
health: null
health:
rules:
- metric: "RUN_DURATION_SECONDS"
op: "GREATER_THAN"
value: 7200.0
git_source:
git_commit: a
git_provider: github
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ environments:
email_notifications: null
notification_settings: null
webhook_notifications: null
health: null
health:
rules:
- metric: "RUN_DURATION_SECONDS"
op: "GREATER_THAN"
value: 7200.0
git_source:
git_commit: a
git_provider: github
Expand Down
6 changes: 5 additions & 1 deletion tests/codegen/expected_bundles/local_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ environments:
email_notifications: null
notification_settings: null
webhook_notifications: null
health: null
health:
rules:
- metric: "RUN_DURATION_SECONDS"
op: "GREATER_THAN"
value: 7200.0
git_source: null
job_clusters: []
max_concurrent_runs: 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ environments:
email_notifications: null
notification_settings: null
webhook_notifications: null
health: null
health:
rules:
- metric: "RUN_DURATION_SECONDS"
op: "GREATER_THAN"
value: 7200.0
git_source: null
job_clusters: []
max_concurrent_runs: 1.0
Expand Down
5 changes: 5 additions & 0 deletions tests/codegen/sample_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
run_as_user="[email protected]",
tags={"test": "test2"},
common_task_parameters={"all_tasks1": "test", "all_tasks3": "123"}, # type: ignore
health={
"rules": [
{"metric": "RUN_DURATION_SECONDS", "op": "GREATER_THAN", "value": 7200.0}
]
}
)


Expand Down

0 comments on commit b727bce

Please sign in to comment.