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 for windows failure InternalDistributionArchiveSetupPluginFuncTest #5417

Conversation

Poojita-Raj
Copy link
Contributor

Signed-off-by: Poojita Raj poojiraj@amazon.com

Description

Failure on windows for the InternalDistributionArchiveSetupPluginFuncTest is unexpected. Fails with "registered distribution provides archives and directory variant".
This is because -

  • tar task execution is skipped on windows.
  • plain copy task execution doesn't execute on windows since source files will not be present.

To get the test passing again, we check for expected conditions on windows and non-windows machines.

Issues Resolved

Resolves #5324

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

Signed-off-by: Poojita Raj <poojiraj@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

file("producer-tar/build/install/snapshot-2.0.txt").exists()
} else {
when:
def result = gradleRunner("copyArchive").build()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should add a test case for Windows ZIP archive (for Windows platform), to check the archive distribution also works on Windows (we had issues with that in the past), what do you think @Poojita-Raj?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @reta, thanks for the review! Yes, I think we can do that, however do you believe that's a blocker for windows readiness for the 1.3.7 release? Or would it be a nice to have add on?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks @Poojita-Raj , I think it is nice to have but certainly not a blocker

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @reta, I've opened another issue for your comment to track it, and will merge this in for now.

@mch2 mch2 merged commit 13ac948 into opensearch-project:1.x Dec 1, 2022
@mch2 mch2 added the backport 1.3 Backport to 1.3 branch label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.3 Backport to 1.3 branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants