Skip to content

Conversation

@Vere-Grey
Copy link
Contributor

@Vere-Grey Vere-Grey commented Sep 5, 2025

The condition was wrong from the start but my recent changes made it to profess this problem and report was not published when report orchestrator was run. This fix simplifies the logic and fixes the problem

Description

Related Issue

Resolve

Screenshots:

🔍🖥️ Suite web test results: View in Currents

🔍🖥️ Suite desktop test results: View in Currents

@Vere-Grey Vere-Grey self-assigned this Sep 5, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a conditional logic issue in the e2e test reporter that was causing reports to be published unintentionally. The fix simplifies the reporter triggering logic and ensures proper control over when test results are published to GitHub.

  • Simplifies the reporter conditional logic by removing the github.event_name == 'workflow_call' condition
  • Standardizes input definitions by adding missing type: boolean declarations
  • Updates orchestration workflow to explicitly pass publishResultsToGitHub: true when calling reusable workflows

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/tests/e2e-github-reporter.md Removes outdated documentation about the old conditional logic
.github/workflows/test-suite-web-e2e-release.yml Adds input definition for workflow_call and simplifies run-reporter condition
.github/workflows/test-suite-release-e2e-report-orchestration.yml Explicitly passes publishResultsToGitHub: true to called workflows
.github/workflows/test-suite-native-e2e-android.yml Adds type: boolean and passes input as secret
.github/workflows/test-suite-native-e2e-android-t3w1.yml Adds type: boolean and passes input as secret
.github/workflows/test-suite-desktop-e2e-release.yml Adds input definition for workflow_call and simplifies run-reporter condition

@Vere-Grey Vere-Grey enabled auto-merge (rebase) September 5, 2025 10:06
e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }}
github-token: ${{ steps.trezor-bot-token.outputs.token }}
release-build: ${{ env.release_build }}
run-reporter: ${{ inputs.publishResultsToGitHub == 'true' || github.event_name == 'workflow_call' }}
Copy link
Contributor Author

@Vere-Grey Vere-Grey Sep 5, 2025

Choose a reason for hiding this comment

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

the workflow's github.event_name was never 'workflow_call' because it inherits its parent status. Which was workflow_dispatch.
And at the first itteration the condition was github.event_name == 'workflow_dispatch'|| github.event_name == 'workflow_call'
That is why it worked until I have optimized it to inputs.publishResultsToGitHub == 'true' || github.event_name == 'workflow_call'

@Vere-Grey Vere-Grey merged commit 6c9423e into develop Sep 5, 2025
49 of 50 checks passed
@Vere-Grey Vere-Grey deleted the fix-release-report-orchestration branch September 5, 2025 10:43
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.

3 participants