Skip to content

Conversation

@YanxuanLiu
Copy link
Collaborator

@YanxuanLiu YanxuanLiu commented Feb 18, 2025

Signed-off-by: Yanxuan Liu <[email protected]>
Signed-off-by: Yanxuan Liu <[email protected]>
Signed-off-by: Yanxuan Liu <[email protected]>
Signed-off-by: Yanxuan Liu <[email protected]>
Signed-off-by: Yanxuan Liu <[email protected]>
@YanxuanLiu YanxuanLiu marked this pull request as ready for review February 18, 2025 10:31
@YanxuanLiu YanxuanLiu requested a review from a team as a code owner February 18, 2025 10:31
@YanxuanLiu YanxuanLiu self-assigned this Feb 18, 2025
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."
# Skip for merge to main
PR_TITLE="${{ github.event.pull_request.title }}"
Copy link
Member

Choose a reason for hiding this comment

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

check title is not promising and could cause some issue, can we do the check based on the PR.base?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, changed to use base.ref

Signed-off-by: Yanxuan Liu <[email protected]>
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."
# Skip for merge to main PR
if [[ "${{ github.event.pull_request.base.sha }}" == "main" ]]; then
Copy link
Member

@pxLi pxLi Feb 19, 2025

Choose a reason for hiding this comment

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

Im not sure, sha could be the actual commit id, may try .ref

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

do we have a target main run log? thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://github.com/YanxuanLiu/spark-rapids/actions/runs/13404579617/job/37442083494?pr=24#step:4:33 it still got branch-25.02 since the feature branch is based on branch-25.02

Copy link
Member

@pxLi pxLi Feb 19, 2025

Choose a reason for hiding this comment

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

then we could try pass the ENV from caller side or try find some other event property for this case

Copy link
Member

Choose a reason for hiding this comment

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

image I am checking your test vars, it seems this commit check status has been override by previous run

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Corrected the commit history of forked repo and tested again, now it can get correct base.ref https://github.com/YanxuanLiu/spark-rapids/actions/runs/13406205693/job/37446469023?pr=25

pxLi
pxLi previously approved these changes Feb 19, 2025
Copy link
Member

@pxLi pxLi left a comment

Choose a reason for hiding this comment

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

LGTM. please verify the case for skip checking merge to main when base.ref == main before merge thanks need to correct the base.ref

@pxLi pxLi dismissed their stale review February 19, 2025 03:17

need extra fix

@pxLi
Copy link
Member

pxLi commented Feb 19, 2025

updated with latest run: https://github.com/YanxuanLiu/spark-rapids/actions/runs/13406205693

previous test failure was false alarm due to common commits in 2 alive PRs

@pxLi pxLi merged commit 75dc75f into NVIDIA:main Feb 19, 2025
2 checks passed
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.

[BUG] license header check should be skipped in merge to main change

2 participants