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 the bundle_artifact_path value and remove wrong comments for deb assemble #4673

Merged

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented May 2, 2024

Description

Fix the bundle_artifact_path value and remove wrong comments for deb assemble

Issues Resolved

Closes #4532

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…assemble

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
# for dirpath, dirnames, filenames in os.walk(os.path.join('/tmp/opensearch*')):
# In debuild, the final package is created in the parent directory of the sources
# https://github.com/opensearch-project/opensearch-build/issues/4532#issuecomment-2091726868
bundle_artifact_path = f"/tmp/{self.filename}_{deb_version}_{deb_architecture(build_cls.architecture)}.deb"
Copy link
Member

Choose a reason for hiding this comment

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

Is this path the same as before?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is same, but in previous implementation the var bundle_artifact_path is missing assignment other than None, resulted in:

2024-03-14 17:05:15 INFO     Found deb file: None

Now:

2024-05-02 21:50:15 INFO     Found deb file: /tmp/opensearch_2.14.0_amd64.deb

Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

Make sense. I see it doesn't assign any value after line 100. Thanks @peterzhuamazon

# for dirpath, dirnames, filenames in os.walk(os.path.join('/tmp/opensearch*')):
# In debuild, the final package is created in the parent directory of the sources
# https://github.com/opensearch-project/opensearch-build/issues/4532#issuecomment-2091726868
bundle_artifact_path = f"/tmp/{self.filename}_{deb_version}_{deb_architecture(build_cls.architecture)}.deb"
Copy link
Member

Choose a reason for hiding this comment

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

Make sense. I see it doesn't assign any value after line 100. Thanks @peterzhuamazon

@peterzhuamazon peterzhuamazon merged commit 74ec6f0 into opensearch-project:main May 2, 2024
11 checks passed
@peterzhuamazon peterzhuamazon deleted the deb-output-prints branch May 2, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] Deb assemble does not correctly show found deb artifact
2 participants