Skip to content

Conversation

@lukaszstolarczuk
Copy link
Contributor

Right now, E2E workflows don't run at all for PR's (triggered via comments), because git is failing to checkout proper ref.

Example of failed CI: https://github.com/oneapi-src/unified-runtime/actions/runs/8157313297/job/22296700396#step:5:60

// tested on my fork:
// https://github.com/lukaszstolarczuk/unified-runtime/actions/runs/8173691655/job/22346695074#step:5:29
// lukaszstolarczuk#5 (comment)

By default 'issue_comment' trigger gets the context of a default branch.
If we want to test the actual PR, on which we created/edited a comment
we have to fetch and checkout a special ref for PR's merge commit.

Note, that 'pull/<no>/merge' ref is available as long as the PR
is not merged. This commit do not take this under consideration, since
this case should be fairly uncommon and would obfuscate the workflow.
@lukaszstolarczuk lukaszstolarczuk requested a review from a team as a code owner March 6, 2024 14:38
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 12.51%. Comparing base (78ef1ca) to head (51bbfcf).
Report is 104 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1413      +/-   ##
==========================================
- Coverage   14.82%   12.51%   -2.32%     
==========================================
  Files         250      239      -11     
  Lines       36220    35949     -271     
  Branches     4094     4076      -18     
==========================================
- Hits         5369     4498     -871     
- Misses      30800    31447     +647     
+ Partials       51        4      -47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wlemkows wlemkows merged commit 91c9e91 into oneapi-src:main Mar 11, 2024
@lukaszstolarczuk lukaszstolarczuk deleted the fix-e2e-on-pr branch March 11, 2024 11:59
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.

4 participants