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

[Bug]: The [AUTOCUT] issues does not have the updated information and close once the issue is resolved #3809

Closed
prudhvigodithi opened this issue Jul 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New Enhancement

Comments

@prudhvigodithi
Copy link
Collaborator

prudhvigodithi commented Jul 25, 2023

Describe the bug

The existing [AUTOCUT] issues for integ-test failures (Example opensearch-project/security#3011) and distribution build failures (Example opensearch-project/k-NN#957) does have the latest information, this is because the existing logic looks for an issue created and simply skips. This is a problem as the latest build information is not updated to the issue body.

This is causing a huge problem for an release-manager to always gather the latest logs and post as a comment or as a hack close the issue created (example opensearch-project/k-NN#957) and allow the logic to re-create again (example opensearch-project/k-NN#975). This not only required a manual task for an release-manager to close the issue, but also cause to create multiple issues in the repo and this keeps growing for the same version if we close and allow to re-create again.

The Second part is the [AUTOCUT] once created they never gets closed until an release-manager or a repo owner identifies and close the issue.

To reproduce

The existing logic, a sample build https://build.ci.opensearch.org/job/distribution-build-opensearch/8194/consoleText

+ gh issue list --repo https://github.com/opensearch-project/reporting.git -S '[AUTOCUT] Distribution Build Failed for opensearch-reports-3.0.0 in:title' --label autocut,v3.0.0
[Pipeline] echo
Issue already exists in the repository, skipping.

The existing AUTOCUT issue points to build number 8083, but the latest failed build (as of this issue creation) is 8194

Expected behavior

The expected behaviour is, instead of just skipping the issue creation, if the issue exists add a new comment with the latest failed build.

This will solve from closing the existing issue and adding the latest failed build information.

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

No response

Relevant log output

No response

@prudhvigodithi prudhvigodithi added bug Something isn't working untriaged Issues that have not yet been triaged labels Jul 25, 2023
@prudhvigodithi prudhvigodithi self-assigned this Jul 25, 2023
@prudhvigodithi prudhvigodithi added the enhancement New Enhancement label Jul 25, 2023
@prudhvigodithi prudhvigodithi changed the title [Bug]: The [AUTOCUT] issues does not have the updated information [Bug]: The [AUTOCUT] issues does not have the updated information and close once the issue is resolved Jul 27, 2023
@prudhvigodithi
Copy link
Collaborator Author

Adding comment with latest build fail information: opensearch-project/job-scheduler#433 (comment) (The comments keeps increasing when the build frequency is more, I’m open for ideas to fine tune this behaviour)
Close the issue when component passed: opensearch-project/common-utils#430 (comment)
Build log: https://build.ci.opensearch.org/job/distribution-build-opensearch/8206/console

@prudhvigodithi prudhvigodithi removed the untriaged Issues that have not yet been triaged label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New Enhancement
Projects
Development

No branches or pull requests

1 participant