Skip to content
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

feat: add new test workflow #2602

Merged
merged 25 commits into from
Jun 29, 2023

Conversation

dejanzele
Copy link
Member

@dejanzele dejanzele commented Jun 22, 2023

Fixes #

Special notes for your reviewer:

┆Issue is synchronized with this Jira Task by Unito

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: -42.71 ⚠️

Comparison is base (aa84bf0) 58.77% compared to head (ddd5aeb) 16.07%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2602       +/-   ##
===========================================
- Coverage   58.77%   16.07%   -42.71%     
===========================================
  Files         238      159       -79     
  Lines       30477    12490    -17987     
  Branches        0      470      +470     
===========================================
- Hits        17914     2008    -15906     
+ Misses      11216    10320      -896     
+ Partials     1347      162     -1185     
Flag Coverage Δ
armada-server ?
unittests 16.07% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 371 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

pavlovic-ivan
pavlovic-ivan previously approved these changes Jun 27, 2023
Copy link
Collaborator

@pavlovic-ivan pavlovic-ivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kannon92
Copy link
Contributor

Our required workflows are looking for go-lint (1.20) and go-unit-tests (1.20). Otherwise I think this LGTM.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

kannon92
kannon92 previously approved these changes Jun 28, 2023
branches-ignore:
- gh-pages
schedule:
# Run daily at 01:34, so we get notified if CI is broken before a pull request
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for this exact time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, random

path: ./internal/lookout/ui/junit.xml
if-no-files-found: error

- name: Send Coverage Report to Codecov
Copy link
Contributor

@Sharpz7 Sharpz7 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to test that this produces the results we expect? (General question about all code coverages together)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./internal/jobservice/repository/... 2>&1 | tee -a test_reports/internal.txt
$(GOTESTSUM) -- -coverprofile pkg_coverage.xml -v ./pkg... 2>&1 | tee test_reports/pkg.txt
$(GOTESTSUM) -- -coverprofile cmd_coverage.xml -v ./cmd... 2>&1 | tee test_reports/cmd.txt
$(GOTESTSUM) --format short-verbose --junitfile test-reports/unit-tests.xml --jsonfile test-reports/unit-tests.json -- -coverprofile=test-reports/coverage.out -covermode=atomic ./cmd/... ./pkg/... $(go list ./internal/... | grep -v 'jobservice/repository')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get this moved to mage? Even if its just a simple command that is run?

@Sharpz7
Copy link
Contributor

Sharpz7 commented Jun 28, 2023

Have the intergration tests been changed in any way?

I had it run consistently at 6-7 mins, it seems to be taking longer than that.

@dejanzele
Copy link
Member Author

not in this PR

@dejanzele dejanzele merged commit 60944e7 into armadaproject:master Jun 29, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants