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

fix(tarball/trigger): Change tip of branch logic #859

Closed
wants to merge 1 commit into from

Conversation

nuclearcat
Copy link
Member

Right now by some reason tip_of_branch always false, even trigger points to latest commit in branch.
Probably function in kernelci-core should be used differently? Simplify it, we always expect trigger service to watch for tip of branch commit.

Right now by some reason tip_of_branch always false,
even trigger points to latest commit in branch.
Probably function in kernelci-core should be used differently?
Simplify it, we always expect trigger service to watch
for tip of branch commit.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
@@ -82,6 +82,7 @@ def _run_trigger(self, build_config, force, timeout, trees):
'kind': 'checkout',
'data': {
'kernel_revision': revision,
'tip_of_branch': True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be set statically. We should keep it dynamic.

Copy link
Member Author

Choose a reason for hiding this comment

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

In trigger it is by definition tip of tree:

        head_commit = kernelci.build.get_branch_head(build_config)

so it is expected that trigger.py generates only branch head which is same meaning as tip of branch.

@JenySadadia
Copy link
Collaborator

kernelci/kernelci-core#2734 would fix the issue in core function.
Hence, we an close this PR without merging.

@JenySadadia JenySadadia added the staging-skip Don't test automatically on staging.kernelci.org label Nov 5, 2024
@nuclearcat
Copy link
Member Author

Let's test it, then i will close.

@nuclearcat nuclearcat closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging-skip Don't test automatically on staging.kernelci.org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants