Skip to content

Commit

Permalink
src/trigger: fix duplicate checkout node creations
Browse files Browse the repository at this point in the history
Fix multiple checkout node creation with the same revision
commit. Update logic to check existing `checkout` node
for specific commit as per `Node` schema changes.

Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
  • Loading branch information
Jeny Sadadia authored and nuclearcat committed Jan 23, 2024
1 parent ea9479e commit 1b39a36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def _log_revision(self, message, build_config, head_commit):
def _run_trigger(self, build_config, force, timeout):
head_commit = kernelci.build.get_branch_head(build_config)
node_count = self._api.node.count({
"revision.commit": head_commit,
"kind": "checkout",
"data.kernel_revision.commit": head_commit,
"owner": self._current_user['username'],
})

Expand Down

0 comments on commit 1b39a36

Please sign in to comment.