Skip to content

Conversation

@tawadaa
Copy link
Contributor

@tawadaa tawadaa commented Oct 14, 2025

No description provided.

@cla-bot cla-bot bot added the cla-signed label Oct 14, 2025
echo "🔧 Parsing component versions..."
# Parse coprocessor array (7 elements)
coprocessor_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.coprocessor || '[]' }}'

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
echo "🔧 Parsing component versions..."
# Parse coprocessor array (7 elements)
coprocessor_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.coprocessor || '[]' }}'

Check failure

Code scanning / zizmor

code injection via template expansion Error test

code injection via template expansion
fi
# Parse gateway string
gateway_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.gateway || '' }}'

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
fi
# Parse gateway string
gateway_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.gateway || '' }}'

Check failure

Code scanning / zizmor

code injection via template expansion Error test

code injection via template expansion
[[ -n "${gateway_input}" ]] && echo "GATEWAY_VERSION_OVERRIDE=${gateway_input}" >> "$GITHUB_ENV"
# Parse host string
host_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.host || '' }}'

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
fi
# Parse test-suite string
test_suite_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.test-suite || '' }}'

Check failure

Code scanning / zizmor

code injection via template expansion Error test

code injection via template expansion
[[ -n "${test_suite_input}" ]] && echo "TEST_SUITE_VERSION_OVERRIDE=${test_suite_input}" >> "$GITHUB_ENV"
# Parse relayer string
relayer_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.relayer || '' }}'

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
[[ -n "${test_suite_input}" ]] && echo "TEST_SUITE_VERSION_OVERRIDE=${test_suite_input}" >> "$GITHUB_ENV"
# Parse relayer string
relayer_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.relayer || '' }}'

Check failure

Code scanning / zizmor

code injection via template expansion Error test

code injection via template expansion
[[ -n "${relayer_input}" ]] && echo "RELAYER_VERSION_OVERRIDE=${relayer_input}" >> "$GITHUB_ENV"
# Parse kms-core string
kms_core_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.kms-core || '' }}'

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
[[ -n "${relayer_input}" ]] && echo "RELAYER_VERSION_OVERRIDE=${relayer_input}" >> "$GITHUB_ENV"
# Parse kms-core string
kms_core_input='${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.kms-core || '' }}'

Check failure

Code scanning / zizmor

code injection via template expansion Error test

code injection via template expansion
- name: Check if image was built
id: check-build
run: |
# Check if docker-e2e-image job ran and succeeded

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
- name: Check if image was built
id: check-build
run: |
# Check if docker-e2e-image job ran and succeeded

Check notice

Code scanning / zizmor

code injection via template expansion Note test

code injection via template expansion
run: |
# Check if docker-e2e-image job ran and succeeded
if [[ "${{ needs.docker-e2e-image.result }}" == "success" ]]; then
echo "image-built=true" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"

Check warning

Code scanning / zizmor

code injection via template expansion Warning test

code injection via template expansion
echo "✅ Image was built successfully"
else
echo "image-built=false" >> "$GITHUB_OUTPUT"
echo "image-tag=" >> "$GITHUB_OUTPUT"

Check notice

Code scanning / zizmor

code injection via template expansion Note test

code injection via template expansion
@tawadaa tawadaa force-pushed the mq/ci/orchestrate-e2e branch from e18de8f to 8c0a30e Compare October 22, 2025 10:27
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

zizmor found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@tawadaa tawadaa force-pushed the mq/ci/orchestrate-e2e branch from 8c0a30e to 4340f77 Compare October 22, 2025 12:28
@tawadaa tawadaa marked this pull request as ready for review October 22, 2025 12:30
@tawadaa tawadaa requested a review from a team as a code owner October 22, 2025 12:30
fhevm-e2e-test:
name: test-suite-e2e-tests-mq/fhevm-e2e-test (bpr)
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-fhevm == 'true' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'mergify/merge-queue/') }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure we want to run this workflow on github.event_name == 'release'?

Should we keep both test-suite-e2e-tests.yml and test-suite-e2e-tests-mq.yml?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, I think we should delete test-suite-e2e-tests-with-build.yml right?

Copy link
Contributor

Choose a reason for hiding this comment

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

If we keep both test-suite-e2e-tests.yml and test-suite-e2e-tests-mq.yml, what is the purpose of test-suite-orchestrate-e2e-tests.yml?
Couldn't we just use the trigger-builds job directly as the first job of the test-suite-e2e-tests-mq.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't need github.event_name == 'release', it's an old test, let me clean it
Yes, for now, we keep both of them, in order not to disturb the current e2e tests pipeline, until validating the merge queue pipeline

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we keep both test-suite-e2e-tests.yml and test-suite-e2e-tests-mq.yml, what is the purpose of test-suite-orchestrate-e2e-tests.yml? Couldn't we just use the trigger-builds job directly as the first job of the test-suite-e2e-tests-mq.yml?

There are mainly 2 approches, either separate simple workflows or 1 complex workflow, I prefer the first approcah as it's easier to maintain.
In our case, it might appear that test-suite-e2e-tests-mq.yml and test-suite-orchestrate-e2e-tests.yml can be easily merged, but I prefer to keep them separate for few reasons:

  • They have different roles, one is for orchestration and the other is for execution
  • We might need to launch manually test-suite-e2e-tests-mq.yml for some reason e.g hotfix

Copy link
Contributor

Choose a reason for hiding this comment

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

Fine for me, thx for the details 🙂

Comment on lines +79 to +94
output-build-status:
name: coprocessor-gw-listener-docker-build/output-build-status
needs: [check-changes, build]
if: always()
permissions:
contents: 'read'
runs-on: ubuntu-latest
outputs:
image-built: ${{ steps.check-build.outputs.image-built }}
image-tag: ${{ steps.check-build.outputs.image-tag }}
steps:
- name: Check if image was built
id: check-build
run: |
# Check if docker build job ran and succeeded
if [[ "${{ needs.build.result }}" == "success" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure all these output-build-status are userful?

AFAIK, the test-suite-orchestrate have access to the ${{ github.sha }} and thus the image tag already. Plus, I think it can check by itself whether the build.result step was equal to success or not right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants