Skip to content

fix(3491): Enable the UI to determine which start method is used [1]#614

Draft
yakanechi wants to merge 4 commits intoscrewdriver-cd:masterfrom
sonic-screwdriver-cd:branch-specific-start-fix
Draft

fix(3491): Enable the UI to determine which start method is used [1]#614
yakanechi wants to merge 4 commits intoscrewdriver-cd:masterfrom
sonic-screwdriver-cd:branch-specific-start-fix

Conversation

@yakanechi
Copy link
Copy Markdown
Contributor

@yakanechi yakanechi commented May 2, 2026

Context

If you start a new event based on an event triggered by a branch-specific trigger, the branch is not properly inherited.
This is because parentEventId is not passed at the start.

However, if you simply pass parentEventId along, it will no longer be distinguishable from a restart, and the metadata will be carried over as well.
As a temporary fix for this issue, we can pass the baseBranch information from the UI on the payload.
However, I hesitate to implement this solution without following points:

Currently, the only way to determine which start method was used from the UI is by checking whether a specific property is included in the payload (e.g., buildId, parentEventId).
In this issues, the fundamental issue is that the start or restart method is determined based on the existence of specific properties.
In general, the methods for initiating actions from the UI are limited to a finite number of types that can be expressed using enumerations, such as STATUS.

Therefore, it should be possible to clearly distinguish the start method in the API by including the start method in the payload sent from the UI.

Objective

Make it possible to check which start method was used from the UI.
Furthermore, we will ensure that this information can be accepted as the payload in a POST request.

References

screwdriver-cd/screwdriver#3491

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@yakanechi yakanechi changed the title fix(3491): Enable the UI to determine which start method is used fix(3491): Enable the UI to determine which start method is used [1] May 2, 2026
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.

1 participant