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

fixes #295 - handle Duplicate error while creating aap job labels #296

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

rplevka
Copy link
Member

@rplevka rplevka commented Jun 16, 2024

Try to POST to job labels straight away and catch eventual Duplicate 400 response.
in such case, retrieve the label id using the GET method and carry on.

2 consecutive broker checkout commands with passing the same label should be enough to test this.
the first one creates the label on AAP, while the other one hits the 400 and handles it.
As a result, both resulting AAP jobs have the same job label attached and both broker commands finish successfully.

@rplevka rplevka self-assigned this Jun 16, 2024
Copy link
Member

@JacobCallahan JacobCallahan left a comment

Choose a reason for hiding this comment

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

I like the distinction in your log messages. ACK

@JacobCallahan
Copy link
Member

@rplevka is this ready to merge?

@rplevka
Copy link
Member Author

rplevka commented Jun 18, 2024

@JacobCallahan yes

@JacobCallahan JacobCallahan merged commit 16db13c into SatelliteQE:master Jun 18, 2024
4 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.

None yet

3 participants