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] Transient extension mismatch in the distribution upload step #3097

Closed
peterzhuamazon opened this issue Jan 12, 2023 · 5 comments
Closed
Assignees
Labels
bug Something isn't working technical-debt Additional rework required to improve the existing code

Comments

@peterzhuamazon
Copy link
Member

It is very strange that sometimes we see certain distribution using wrong extensions, which was called in the libs repo src/jenkins/Bundle_Manifest.groovy.

+ cp -v C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.5.0-SNAPSHOT-windows-x64.tar.gz C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.5.0-SNAPSHOT-windows-x64-latest.tar.gz

cp: cannot stat 'C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.5.0-SNAPSHOT-windows-x64.tar.gz': No such file or directory

script returned exit code 1

This does not happen often which is transient, so it is not sure where the issue is coming from. The speculation is some sort of race condition that cause the state of groovy did not update.

Similar to: https://web.archive.org/web/20181121065904/http://blog.freeside.co/2013/03/29/groovy-gotcha-for-loops-and-closure-scope/

Thanks.

@peterzhuamazon peterzhuamazon added the bug Something isn't working label Jan 12, 2023
@peterzhuamazon peterzhuamazon self-assigned this Jan 12, 2023
@peterzhuamazon peterzhuamazon added the untriaged Issues that have not yet been triaged label Jan 12, 2023
@bbarani bbarani added the technical-debt Additional rework required to improve the existing code label Jan 12, 2023
@rishabh6788 rishabh6788 removed the untriaged Issues that have not yet been triaged label Jan 19, 2023
@rishabh6788
Copy link
Collaborator

Issue needs deep-dive into root cause and try to replicate.

@gaiksaya
Copy link
Member

This happened again:

+ cp -v C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.7.0-SNAPSHOT-windows-x64.tar.gz C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.7.0-SNAPSHOT-windows-x64-latest.tar.gz

cp: cannot stat 'C:/Users/Administrator/jenkins/workspace/distribution-build-opensearch/zip/builds/opensearch/dist/opensearch-min-2.7.0-SNAPSHOT-windows-x64.tar.gz': No such file or directory

script returned exit code 1

https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/7323/pipeline

@jordarlu
Copy link
Contributor

hi,, does this still happen from time to time? could it be the source file were not fully ready at the time the 'cp' was executed? maybe we can add a step to make sure the source file is ready before doing the cp ? https://stackoverflow.com/questions/38534781/check-if-a-file-exists-in-jenkins-pipeline

@prudhvigodithi
Copy link
Collaborator

Closing this as duplicate to opensearch-project/opensearch-build-libraries#319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working technical-debt Additional rework required to improve the existing code
Projects
None yet
Development

No branches or pull requests

6 participants