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

Go: Refactor test workflows #16927

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Go: Refactor test workflows #16927

wants to merge 5 commits into from

Conversation

mbg
Copy link
Member

@mbg mbg commented Jul 8, 2024

No description provided.

@mbg mbg force-pushed the mbg/go/refactor-test-workflows branch 7 times, most recently from 0bba2e8 to 2a1587e Compare July 8, 2024 14:33
@mbg mbg force-pushed the mbg/go/refactor-test-workflows branch 6 times, most recently from 4226a06 to a90aee9 Compare July 9, 2024 12:34
@mbg mbg force-pushed the mbg/go/refactor-test-workflows branch from a90aee9 to 8ff5888 Compare July 9, 2024 12:35
Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

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

A couple of comments on dispatch vs call.

Another point though: if we are investing in this workflow, wouldn't it make sense maybe to move the QL testing it to the internal repo amd the WFG and add it to QLucie? We would then catch problems of QL/semmle-code going out of sync.

Long term, I would keep in codeql only stylistic checks (like formatting) and checks ensuring local codeql development works (i.e. that building from codeql with make still works, as that wouldn't be checked in the internal repo).

I can understand if you want to postpone this (or leave it to the IDX team to do 🙂)

Comment on lines 116 to 122
steps:
- name: Dispatch test workflow
shell: bash
run: |
gh workflow run "go-tests-linux.yml" --repo "${{ github.repository }}" --ref "${{ github.head_ref || github.ref_name }}" --json
env:
GH_TOKEN: ${{ github.token }}
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't a workflow call work here?

Suggested change
steps:
- name: Dispatch test workflow
shell: bash
run: |
gh workflow run "go-tests-linux.yml" --repo "${{ github.repository }}" --ref "${{ github.head_ref || github.ref_name }}" --json
env:
GH_TOKEN: ${{ github.token }}
uses: ./.github/go-tests-linux.yml
with:
ref: ${{ needs.prepare-go-tests.outputs.ref }}

Otherwise I'm not sure the dispatched workflow will be very visible from the PR

Comment on lines 131 to 137
steps:
- name: Dispatch test workflow
shell: bash
run: |
gh workflow run "go-tests-other-os.yml" --repo "${{ github.repository }}" --ref "${{ github.head_ref }}" --json
env:
GH_TOKEN: ${{ github.token }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

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

2 participants