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 non-x64 bwc build targets #16575

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

andrross
Copy link
Member

@andrross andrross commented Nov 6, 2024

There were a few issues here: the '-x64' suffix was being unconditionally appeneded, debian uses underscores not hyphens, and the rpm target uses the '.86_64' suffix.

This feels like a hack, but the ./gradlew distribution:bwc:minor:buildBwc task now succeeds with this commit, whereas previously several of the targets failed. I've tested this on Intel Linux, Arm Linux, and Apple Silicon Mac. I think during a normal check run only the target that corresponds to the platform doing the building is executed, which is why the other targets were broken but no one had noticed. I'll happily entertain any suggestions on how to add a test for this!

Related Issues

Resolves #16535

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

There were a few issues here: the '-x64' suffix was being unconditionally
appeneded, debian uses underscores not hyphens, and the rpm target uses the
'.86_64' suffix.

Signed-off-by: Andrew Ross <andrross@amazon.com>
@github-actions github-actions bot added bug Something isn't working Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. labels Nov 6, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

❌ Gradle check result for 31baa41: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

github-actions bot commented Nov 6, 2024

✅ Gradle check result for 31baa41: SUCCESS

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 72.08%. Comparing base (0363aa7) to head (31baa41).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...e/internal/InternalDistributionBwcSetupPlugin.java 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16575      +/-   ##
============================================
+ Coverage     72.00%   72.08%   +0.07%     
- Complexity    65038    65098      +60     
============================================
  Files          5313     5314       +1     
  Lines        303454   303545      +91     
  Branches      43910    43923      +13     
============================================
+ Hits         218510   218811     +301     
+ Misses        67040    66821     -219     
- Partials      17904    17913       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrross andrross added the backport 2.x Backport to 2.x branch label Nov 6, 2024
@andrross andrross merged commit 9f790ee into opensearch-project:main Nov 6, 2024
65 of 72 checks passed
@andrross andrross deleted the fix-non-x64-bwc-builds branch November 6, 2024 19:48
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 6, 2024
There were a few issues here: the '-x64' suffix was being unconditionally
appeneded, debian uses underscores not hyphens, and the rpm target uses the
'.86_64' suffix.

Signed-off-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 9f790ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
andrross pushed a commit that referenced this pull request Nov 6, 2024
There were a few issues here: the '-x64' suffix was being unconditionally
appeneded, debian uses underscores not hyphens, and the rpm target uses the
'.86_64' suffix.


(cherry picked from commit 9f790ee)

Signed-off-by: Andrew Ross <andrross@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Task :distribution:bwc:minor:buildBwcLinuxArm64Tar fails on Linux ARM
2 participants