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(3133): upstream event creation when restarting remote join from downstream build #3250

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

yk634
Copy link
Contributor

@yk634 yk634 commented Dec 9, 2024

Context

A workflow containing a remote join may not trigger a build of the remote join if it is restarted from downstream.

Example

Build succeeds downstream and remote join build is triggered upstream.

  • upstream:
image
  • downstream:
image

Upstream remote join is not triggered even if build succeeds after restarting from downstream.

  • downstream:
image
  • upstream:
image

This is due to a unique constraint error when creating a subsequent remote join build after a successful build restarted from a downstream, when trying to create in the restart source upstream event.

Objective

In the remote join workflow, when restarted from a downstream, create a new event on the upstream side and create a build on that event.

References

#3133

License

I confirm that this contribution is made under a BSD license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@coveralls
Copy link

Coverage Status

coverage: 95.173%. remained the same
when pulling 4f5d920 on sonic-screwdriver-cd:yk634-patch-1
into fd6b016 on screwdriver-cd:master.

@yk634 yk634 changed the title fix: upstream event creation when restarting remote join from downstream build fix(3133): upstream event creation when restarting remote join from downstream build Dec 9, 2024
@VonnyJap VonnyJap merged commit f71ebdf into screwdriver-cd:master Dec 10, 2024
2 checks passed
@yk634 yk634 deleted the yk634-patch-1 branch December 11, 2024 00:42
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.

5 participants