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

CI: replace test execution handler with conditional #504

Conversation

ykim-akamai
Copy link
Contributor

@ykim-akamai ykim-akamai commented May 6, 2024

📝 Description

Substitute hacky solution of executing integration tests and uploading test data with a more efficient solution using a conditional statement. This enhancement enables us to directly view test output within its associated step :)

Also for ansible, I separated the uploading logic to a different job for clarity. The uploading/processing logic is a bit more complex and different compare to other repos which involves steps to merge all the xmls into one before uploading to the storage

✔️ How to Test

Verified the workflow on forked - https://github.com/ykim-1/ansible_linode/actions/runs/8977320792
TOD link (test instance) - http://198.19.5.79:7272/builds/663972f94f454e00016b8db8?team=DX&buildName=ansible%200.25.7&bld_id=663972f94f454e00016b8db8

📷 Preview

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

@ykim-akamai ykim-akamai requested a review from a team as a code owner May 6, 2024 23:50
@ykim-akamai ykim-akamai requested review from lgarber-akamai and zliang-akamai and removed request for a team May 6, 2024 23:50
@ykim-akamai ykim-akamai added the repo-ci-improvement for improvements in the repository or CI workflow in the changelog. label May 8, 2024
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

This solution looks much nicer in CI, great work!

@ykim-akamai ykim-akamai requested a review from zliang-akamai May 15, 2024 17:05
Comment on lines +26 to 27
- name: Update packages
run: sudo apt-get update -y
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: Update packages
run: sudo apt-get update -y

I think we won't need apt update because we already removed theapt install command and we won't use apt anywhere else in this workflow?

Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

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

And others looks great! Nice job!

@ykim-akamai ykim-akamai merged commit 679d652 into linode:dev Jun 4, 2024
3 of 4 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants