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

Enhance darwin-arm64 release #5455

Merged

Conversation

AMoo-Miki
Copy link
Collaborator

@AMoo-Miki AMoo-Miki commented Nov 9, 2023

Description

Enhance darwin-arm64 release

  • Add min-builds for darwin-x64 and darwin-arm64.
  • Expose --darwin-arm as a parameter of the build script.
  • Work around build's cleanup failure when removal of an already deleted folder is attempted.
  • Exclude bundling fallbacks with darwin-arm64 since Node.js v14 has no releases for them.
  • Update tests to accommodate darwin-arm64.
  • Generalize the Node.js versions used in some tests.

PS: Skipping changelog as this is an enhancement to a recent change that was merged [#5290]

Issues Resolved

Fixes #5413
Succeeds #5424

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #5455 (02f301c) into main (088fc66) will increase coverage by 7.74%.
Report is 1 commits behind head on main.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main    #5455      +/-   ##
==========================================
+ Coverage   59.07%   66.82%   +7.74%     
==========================================
  Files        2981     3291     +310     
  Lines       56492    63180    +6688     
  Branches     8714    10057    +1343     
==========================================
+ Hits        33372    42219    +8847     
+ Misses      21362    18479    -2883     
- Partials     1758     2482     +724     
Flag Coverage Δ
Linux_1 35.24% <ø> (ø)
Linux_2 55.28% <ø> (?)
Linux_3 43.81% <ø> (?)
Linux_4 35.35% <66.66%> (+0.01%) ⬆️
Windows_1 35.26% <ø> (?)
Windows_2 55.25% <ø> (ø)
Windows_3 43.81% <ø> (?)
Windows_4 35.35% <66.66%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/dev/build/args.ts 84.21% <ø> (ø)
...ev/build/tasks/nodejs/download_node_builds_task.ts 100.00% <100.00%> (ø)
...dev/build/tasks/nodejs/extract_node_builds_task.ts 100.00% <100.00%> (ø)
src/dev/build/lib/fs.ts 18.91% <0.00%> (ø)

... and 725 files with indirect coverage changes

* Add min-builds for `darwin-x64` and `darwin-arm64`.
* Expose `--darwin-arm` as a parameter of the build script.
* Work around build's cleanup failure when removal of an already deleted folder is attempted.
* Exclude bundling fallbacks with `darwin-arm64` since Node.js v14 has no releases for them.
* Update tests to accommodate `darwin-arm64`.
* Generalize the Node.js versions used in some tests.

Signed-off-by: Miki <miki@amazon.com>
@ananzh ananzh merged commit 89dc051 into opensearch-project:main Nov 10, 2023
74 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2023
* Add min-builds for `darwin-x64` and `darwin-arm64`.
* Expose `--darwin-arm` as a parameter of the build script.
* Work around build's cleanup failure when removal of an already deleted folder is attempted.
* Exclude bundling fallbacks with `darwin-arm64` since Node.js v14 has no releases for them.
* Update tests to accommodate `darwin-arm64`.
* Generalize the Node.js versions used in some tests.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit 89dc051)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki added a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Nov 13, 2023
* Add min-builds for `darwin-x64` and `darwin-arm64`.
* Expose `--darwin-arm` as a parameter of the build script.
* Work around build's cleanup failure when removal of an already deleted folder is attempted.
* Exclude bundling fallbacks with `darwin-arm64` since Node.js v14 has no releases for them.
* Update tests to accommodate `darwin-arm64`.
* Generalize the Node.js versions used in some tests.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit 89dc051)
AMoo-Miki added a commit that referenced this pull request Nov 13, 2023
* Enhance darwin-arm64 release (#5455)

* Add min-builds for `darwin-x64` and `darwin-arm64`.
* Expose `--darwin-arm` as a parameter of the build script.
* Work around build's cleanup failure when removal of an already deleted folder is attempted.
* Exclude bundling fallbacks with `darwin-arm64` since Node.js v14 has no releases for them.
* Update tests to accommodate `darwin-arm64`.
* Generalize the Node.js versions used in some tests.

Signed-off-by: Miki <miki@amazon.com>
(cherry picked from commit 89dc051)

* Update CHANGELOG for darwin-arm64

Signed-off-by: Miki <miki@amazon.com>

---------

Signed-off-by: Miki <miki@amazon.com>
@bayandin bayandin mentioned this pull request Jun 24, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x distinguished-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Distribution Build Failed for OpenSearch-Dashboards-3.0.0
4 participants