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

separate job for QA tests #290

Closed
wants to merge 1 commit into from
Closed

Conversation

3nids
Copy link
Contributor

@3nids 3nids commented Oct 30, 2023

No description provided.

@auvipy
Copy link
Collaborator

auvipy commented Oct 31, 2023

I think that would be a logical move

@3nids
Copy link
Contributor Author

3nids commented Nov 2, 2023

coverage is missing, should it simply be added to requirements-unit-test.txt, or should it come from openwisp-utils[qa]?

@auvipy
Copy link
Collaborator

auvipy commented Jul 2, 2024

may be should be added to requirements-unit-test.txt

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

Thank you @3nids! I understand where this comes from and I agree we should not stop the build if QA checks fail.

However, separating the jobs implies installing the python packages twice, increasing build time and energy consumption unnecessarily.

I found a different solution which I am rolling out in other modules I maintain in the OpenWISP organization: openwisp/openwisp-controller@5fff20c
Summary of the solution:

  • Install all dependencies in one step
  • Run QA checks as usual
  • Run tests always except if the build was cancelled or if the install dependencies step failed, this allows to run tests also if QA checks failed
  • Run coveralls only if all previous steps succeded

I think we should adopt the same approach, unless you have a good argument against this approach or a better alternative.

@3nids
Copy link
Contributor Author

3nids commented Jul 4, 2024

This sound great!

@3nids 3nids closed this Jul 4, 2024
@3nids 3nids deleted the separate-test-job branch July 4, 2024 05:35
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.

3 participants