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

test/workflow: Update make test commands and related workflows #498

Conversation

ykim-akamai
Copy link
Contributor

📝 Description

In efforts to unify test commands across all repository, the commands are refactored in Makefile. Refer to "How to Test" Section

Also related GHA workflow yamls have been updated with the latest commands

✔️ How to Test

  • Integration test: make test-int
  • Unit test: make test-unit
  • Smoke test: make test-smoke

Integration test arguments and usage:

TEST_SUITE: Optional, specify a test suite (e.g. domains), Default to run everything if not set
TEST_CASE: Optional, specify a test case (e.g. 'test_image_replication')
TEST_ARGS: Optional, additional arguments for pytest (e.g. '-v' for verbose mode)

e.g.
make TEST_SUITE=domains test-int
make TEST_CASE=test_image_replication test-int
make TEST_CASE=test_image_replication TEST_ARGS="-v" test-int

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@ykim-akamai ykim-akamai added repo-ci-improvement for improvements in the repository or CI workflow in the changelog. testing for updates to the testing suite in the changelog. labels Jan 20, 2025
@ykim-akamai ykim-akamai requested a review from a team as a code owner January 20, 2025 20:01
@ykim-akamai ykim-akamai requested review from jriddle-linode and ezilber-akamai and removed request for a team January 20, 2025 20:01
@@ -28,8 +28,8 @@ on:
- dev

env:
DEFAULT_PYTHON_VERSION: "3.9"
EOL_PYTHON_VERSION: "3.8"
DEFAULT_PYTHON_VERSION: "3.10"
Copy link
Contributor Author

@ykim-akamai ykim-akamai Jan 20, 2025

Choose a reason for hiding this comment

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

bump default python version to 3.10 and EOL version to 3.9

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

New test commands are working locally!

@ykim-akamai ykim-akamai merged commit 0e1f0a3 into linode:dev Jan 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo-ci-improvement for improvements in the repository or CI workflow in the changelog. testing for updates to the testing suite in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants