-
Notifications
You must be signed in to change notification settings - Fork 9
add spread test workflow #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a506fe9
add spread test workflow
Thanhphan1147 a259298
update file name
Thanhphan1147 985a65c
debug
Thanhphan1147 2d280f0
add spread.yaml
Thanhphan1147 a456573
update spread config and wf
Thanhphan1147 29e2947
update spread config and wf
Thanhphan1147 1dfe72f
update spread config
Thanhphan1147 47b805e
update spread config
Thanhphan1147 cb98e0f
update spread config
Thanhphan1147 56dc7d9
adapt tutorial for spread
Thanhphan1147 23db41b
update gitignore
Thanhphan1147 981f118
adapt docs for spread tests
Thanhphan1147 3664193
add scheduled run for spread
Thanhphan1147 39e3330
Merge branch 'main' into ISD_5185_add_spread_testing_workflow
Thanhphan1147 2b80117
add license header
Thanhphan1147 6f08dbe
Merge branch 'ISD_5185_add_spread_testing_workflow' of github.com:can…
Thanhphan1147 108fa21
update docs to adapt to spread tests
Thanhphan1147 27860f8
update upstream wf target
Thanhphan1147 29db5ab
Merge branch 'main' into ISD_5185_add_spread_testing_workflow
Thanhphan1147 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Automated spread testing | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - 'docs/tutorial/getting-started.md' | ||
| schedule: | ||
| - cron: 0 9 * * 1 # At 09:00 UTC on Monday, aligned with the weekly haproxy stable release. | ||
|
|
||
| jobs: | ||
| docs-checks: | ||
| uses: canonical/operator-workflows/.github/workflows/docs_spread.yaml@main | ||
| secrets: inherit | ||
| with: | ||
| input-file: docs/tutorial/getting-started.md | ||
| output-dir: tests/spread/tutorial | ||
| spread-job: github-ci:ubuntu-24.04:tests/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Copyright 2026 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
|
|
||
| project: haproxy-operator-tests | ||
|
|
||
| backends: | ||
| github-ci: | ||
| type: adhoc | ||
|
|
||
| allocate: | | ||
| echo "Allocating ad-hoc $SPREAD_SYSTEM" | ||
| if [ -z "${GITHUB_RUN_ID:-}" ]; then | ||
| FATAL "this back-end only works inside GitHub CI" | ||
| exit 1 | ||
| fi | ||
| echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/99-spread-users | ||
| ADDRESS localhost:22 | ||
| discard: | | ||
| echo "Discarding ad-hoc $SPREAD_SYSTEM" | ||
| systems: | ||
| # username and password are required because docs-spread.yaml creates a new user (ubuntu:ubuntu) | ||
| # Before tests are ran. | ||
| - ubuntu-24.04: | ||
| username: ubuntu | ||
| password: ubuntu | ||
| workers: 1 | ||
|
|
||
| suites: | ||
| tests/spread/: | ||
| summary: Automated spread testing | ||
| systems: | ||
| - ubuntu-24.04 | ||
|
|
||
| path: /home/spread/proj | ||
| kill-timeout: 1h | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.