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

De-Couple Dashboards linux building process #795

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Sep 13, 2021

Description

When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run yarn build-platform --linux-x64 only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run yarn build-platform --linux-arm64 and yarn build-platform darwin-x64.

Partially Resolved:

#473

Signed-off-by: Anan Zhuang [email protected]

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

When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
opensearch-project#473

Signed-off-by: Anan Zhuang <[email protected]>
@ananzh ananzh added build Build related additions or modifications v1.2.0 labels Sep 13, 2021
@ananzh ananzh self-assigned this Sep 13, 2021
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 86f4c71

package.json Show resolved Hide resolved
@ananzh
Copy link
Member Author

ananzh commented Sep 13, 2021

test result:
Screen Shot 2021-09-13 at 10 29 16 AM

src/dev/build/lib/config.ts Outdated Show resolved Hide resolved
src/dev/build/lib/build.test.ts Show resolved Hide resolved
src/dev/build/args.ts Outdated Show resolved Hide resolved
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 8236123

DEVELOPER_GUIDE.md Outdated Show resolved Hide resolved
boktorbb
boktorbb previously approved these changes Sep 20, 2021
Copy link
Contributor

@boktorbb boktorbb left a comment

Choose a reason for hiding this comment

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

+1 on changing archives wording to artifacts. Otherwise, LGTM

@kavilla
Copy link
Member

kavilla commented Sep 20, 2021

Looks awesome! Wording fix. Then I'm wondering what documentation can be updated / created.

@ananzh
Copy link
Member Author

ananzh commented Sep 20, 2021

Looks awesome! Wording fix. Then I'm wondering what documentation can be updated / created.

I add some wording to DEVELOPER_GUIDE.md. Should we add more to some places? like open some issues in document repo?

@ananzh
Copy link
Member Author

ananzh commented Sep 20, 2021

+1 on changing archives wording to artifacts. Otherwise, LGTM

Thanks bishoy. I will fix the word to 'artifacts'

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 0255f27

@ananzh ananzh merged commit 799cab4 into opensearch-project:main Sep 21, 2021
ananzh pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Sep 21, 2021
When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
opensearch-project#473

Backport PR:
opensearch-project#795
Signed-off-by: Anan Zhuang <[email protected]>

support multiple CLI options and fix comments

Signed-off-by: AnanZ <[email protected]>

fix wording to artifacts

Signed-off-by: AnanZ <[email protected]>
ananzh added a commit that referenced this pull request Sep 21, 2021
When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
#473

Backport PR:
#795
Signed-off-by: Anan Zhuang <[email protected]>

support multiple CLI options and fix comments

Signed-off-by: AnanZ <[email protected]>

fix wording to artifacts

Signed-off-by: AnanZ <[email protected]>

Co-authored-by: Ubuntu <[email protected]>
@dblock
Copy link
Member

dblock commented Oct 1, 2021

This will let us fix opensearch-project/opensearch-build#592. Is it too late to backport to 1.1? (Not strictly necessary but would avoid having to duplicate the custom build script for now). @kavilla

ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (opensearch-project#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
opensearch-project#836

Signed-off-by: Anan Zhuang <[email protected]>
@ananzh ananzh mentioned this pull request Oct 5, 2021
5 tasks
ananzh pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Oct 5, 2021
When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
opensearch-project#473

backport PR:
opensearch-project#795

Signed-off-by: Anan Zhuang <[email protected]>
ananzh pushed a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Oct 5, 2021
When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
opensearch-project#473

backport PR:
opensearch-project#795

Signed-off-by: Anan Zhuang <[email protected]>
ananzh added a commit that referenced this pull request Oct 5, 2021
When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
#473

backport PR:
#795

Signed-off-by: Anan Zhuang <[email protected]>

Co-authored-by: Ubuntu <[email protected]>
ananzh added a commit that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
#836

Signed-off-by: Anan Zhuang <[email protected]>
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (opensearch-project#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
opensearch-project#836

Backport PR:
opensearch-project#840

Signed-off-by: Anan Zhuang <[email protected]>
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (opensearch-project#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
opensearch-project#836

Backport PR:
opensearch-project#840

Signed-off-by: Anan Zhuang <[email protected]>
ananzh added a commit that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
#836

Backport PR:
#840

Signed-off-by: Anan Zhuang <[email protected]>
ananzh added a commit that referenced this pull request Oct 5, 2021
yarn build flags in /src/dev/build/cli.ts are not updated to match
the renamed flags in de-couple PR (#795). This PR fixes the issue
and update the tests. Also modify words in DEVELOPER_GUIDE.md.

PR resolved:
#836

Backport PR:
#840

Signed-off-by: Anan Zhuang <[email protected]>
@ananzh ananzh mentioned this pull request Oct 15, 2021
@ananzh ananzh deleted the decouple branch February 23, 2022 17:11
@opensearch-trigger-bot
Copy link
Contributor

The backport to 1.0 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.0 1.0
# Navigate to the new working tree
cd .worktrees/backport-1.0
# Create a new branch
git switch --create backport/backport-795-to-1.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 799cab44b68d5e841530296268e43a93a7fc1fdc
# Push it to GitHub
git push --set-upstream origin backport/backport-795-to-1.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.0

Then, create a pull request where the base branch is 1.0 and the compare/head branch is backport/backport-795-to-1.0.

kavilla pushed a commit to kavilla/OpenSearch-Dashboards-1 that referenced this pull request Sep 13, 2022
* De-Couple Dashboards linux building process

When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
opensearch-project#473

Signed-off-by: Anan Zhuang <[email protected]>

* support multiple CLI options and fix comments

Signed-off-by: AnanZ <[email protected]>

* fix wording to artifacts

Signed-off-by: AnanZ <[email protected]>

Co-authored-by: Ubuntu <[email protected]>
Flyingliuhub pushed a commit that referenced this pull request Sep 13, 2022
* De-Couple Dashboards linux building process

When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
#473

Signed-off-by: Anan Zhuang <[email protected]>

* support multiple CLI options and fix comments

Signed-off-by: AnanZ <[email protected]>

* fix wording to artifacts

Signed-off-by: AnanZ <[email protected]>

Co-authored-by: Ubuntu <[email protected]>

Co-authored-by: Anan <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Flyingliuhub added a commit that referenced this pull request Sep 13, 2022
* De-Couple Dashboards linux building process

When running yarn build --skip-os-packages it will build 4 tarballs
for Dashboards (2x linux, 1x macOS, 1x windows) and takes 10+min to
do so.

In this PR, we break the building process to allow single linux to
build. If run `yarn build-platform --linux-x64` only linux x64 tarball
is created. Same for linux arm64 and darwin x64. You could run `yarn
build-platform --linux-arm64` and `yarn build-platform darwin-x64`.

partially solved:
#473

Signed-off-by: Anan Zhuang <[email protected]>

* support multiple CLI options and fix comments

Signed-off-by: AnanZ <[email protected]>

* fix wording to artifacts

Signed-off-by: AnanZ <[email protected]>

Co-authored-by: Ubuntu <[email protected]>

Co-authored-by: Anan <[email protected]>
Co-authored-by: Ubuntu <[email protected]>

Co-authored-by: Kawika Avilla <[email protected]>
Co-authored-by: Anan <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related additions or modifications v1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants