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

Consolidate image and server setup in multiple checks #14422

Closed
wants to merge 5 commits into from

Conversation

AlanCoding
Copy link
Member

SUMMARY

Some time ago, it was me who introduced make github_ci_setup and the runner one too. I figure that it is easiest if I am the one to delete it, since we have now seen an independent solution evolve for the same problem, via shared github actions.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

@AlanCoding AlanCoding requested a review from relrod September 6, 2023 19:26
@AlanCoding
Copy link
Member Author

My belief is that checks too a little longer on this because changes to the Makefile triggered the image rebuilding. I don't recall exactly why this happens but I believe I've seen it before.

Comment on lines 7 to 13
outputs:
ip:
description: The IP of the tools_awx_1 container
value: ${{ steps.data.outputs.ip }}
admin-token:
description: OAuth token for admin user
value: ${{ steps.data.outputs.admin_token }}
Copy link
Member

Choose a reason for hiding this comment

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

These steps don't exist here, nix?

- name: Build awx_devel image for running checks
uses: ./.github/actions/awx_ci_setup
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to have run_awx_devel include awx_ci_setup?

While we do want to run awx_ci_setup independently sometimes, I don't think we'd ever want to run run_awx_devel without depending on awx_ci_setup.

@@ -26,7 +26,6 @@ jobs:
with:
build-ui: true
github-token: ${{ secrets.GITHUB_TOKEN }}
log-filename: e2e-${{ matrix.job }}.log
Copy link
Member Author

Choose a reason for hiding this comment

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

@relrod This log-filename is an input to the other action (upload_awx_devel_logs), not this action. It seems to have not failed anything, but this seemed to be a bug.

I could, however, see the argument for having run_awx_devel call upload_awx_devel_logs in the same way that I'm now having it call the image build action. In that case, it would be an input, and we also would be more compact by never calling upload_awx_devel_logs

But that would require adding it as something like a "finalizer" step, which needs research.

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like it's not a thing actions/runner#1478

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that is what I really wanted to do originally, but there's no way when using a composite action. :(

@AlanCoding AlanCoding added qe:e2e used to trigger UI e2e tests and removed qe:e2e used to trigger UI e2e tests labels Sep 21, 2023
@AlanCoding AlanCoding closed this Sep 21, 2023
@AlanCoding AlanCoding reopened this Sep 21, 2023
@AlanCoding AlanCoding closed this Sep 21, 2023
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.

2 participants