-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix Go Testing Pipeline #142
Changes from all commits
a125491
912450a
9f1c158
2cfaa6a
402d765
9358b0c
76c2258
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name: Go Test | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
|
@@ -21,10 +20,10 @@ jobs: | |
- name: Install dependencies | ||
run: cd ${{ matrix.directory }} && go mod download | ||
- name: Test with Go | ||
run: cd ${{ matrix.directory }} && go test ./... -json > TestResults-${{ matrix.directory }}.json | ||
run: cd ${{ matrix.directory }} && go test -race ./... -json > TestResults-${{ matrix.directory }}.json | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (Updated Feedback - sorry) I honestly do not see how the race flag actually resolve the root cause of the issue. Hence, the issue is that Github cannot handle the amount of created test containers or that i.e. the timeout is set too short or something like that. Race will only check the local storage of Go but not the connections of external containers. I assume it "fixes" the issue, because it introduces overhead and slows down the execution. But I do no see a reason how this actually resolves the root cause. My Advice:
|
||
- name: Upload Go test results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Go-results-${{ matrix.directory }} | ||
path: ./${{ matrix.directory }}/TestResults-${{ matrix.directory }}.json | ||
path: ./${{ matrix.directory }}/TestResults-${{ matrix.directory }}.json |
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.
The dev.yml is the deployment workflow.
This shall be independent of the testing workflow and not depend on each other. So please change this back and let the testing be a separate workflow.