-
Notifications
You must be signed in to change notification settings - Fork 16
ci: Add kind e2e test #355
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
bce86de
4bbced9
7c7abca
561dced
c04d991
6100746
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| name: Integration | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| kind: | ||
| name: Kind | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Go | ||
| id: setup-go | ||
| uses: ./.github/actions/setup-go-cache | ||
| with: | ||
| cache-prefix: go-integration-kind | ||
|
|
||
| - name: Starting Armada cluster | ||
| run: make kind-all | ||
|
|
||
| - name: Create queue | ||
|
||
| run: | | ||
| # Create queue | ||
| for second in {1..60} | ||
| do | ||
| if ./bin/app/armadactl create queue example 2> armadactl-${second}.log | ||
| then | ||
| if [[ second -eq 1 ]] | ||
| then | ||
| echo "Successfully created queue 'example'" | ||
| else | ||
| echo "Successfully created queue 'example' after ${second}s" | ||
| echo "Previously failed due to:" | ||
| cat armadactl-$((second-1)).log | ||
| fi | ||
| exit | ||
| fi | ||
| sleep 1 | ||
| done | ||
|
|
||
| echo "Failed to create queue 'example' after ${second}s" | ||
| cat armadactl-${second}.log >&2 | ||
| exit 1 | ||
|
|
||
| - name: Test queue exists | ||
| run: | | ||
| # Test queue exists | ||
| for second in {1..60} | ||
| do | ||
| if ./bin/app/armadactl get queue example 2> armadactl-${second}.log | ||
| then | ||
| if [[ second -eq 1 ]] | ||
| then | ||
| echo "Successfully inspected queue 'example'" | ||
| else | ||
| echo "Successfully inspected queue 'example' after ${second}s" | ||
| echo "Previously failed due to:" | ||
| cat armadactl-$((second-1)).log | ||
| fi | ||
| exit | ||
| fi | ||
| sleep 1 | ||
| done | ||
|
|
||
| echo "Failed to inspected queue 'example' after ${second}s" | ||
| cat armadactl-${second}.log >&2 | ||
| exit 1 | ||
|
|
||
| - name: Submit job | ||
| run: | | ||
| # Submit job | ||
| for second in {1..60} | ||
| do | ||
| if ./bin/app/armadactl submit dev/quickstart/example-job.yaml 2> armadactl-${second}.log | ||
| then | ||
| if [[ attempt -eq 1 ]] | ||
| then | ||
| echo "Successfully submitted job" | ||
| else | ||
| echo "Successfully submitted job after ${second}s" | ||
| echo "Previously failed due to:" | ||
| cat armadactl-$((second-1)).log | ||
| fi | ||
| exit | ||
| fi | ||
| sleep 1 | ||
| done | ||
|
|
||
| echo "Failed to submitted job after ${second}s" | ||
| cat armadactl-${second}.log >&2 | ||
| exit 1 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is more of an
e2etest than anintegrationone.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed