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

[Bug]: Reporting build missing chromium dependency #934

Closed
joshuali925 opened this issue Nov 10, 2021 · 5 comments · Fixed by #937
Closed

[Bug]: Reporting build missing chromium dependency #934

joshuali925 opened this issue Nov 10, 2021 · 5 comments · Fixed by #937
Labels
bug Something isn't working untriaged Issues that have not yet been triaged

Comments

@joshuali925
Copy link
Member

joshuali925 commented Nov 10, 2021

Describe the bug

dashboards-reports plugin uses chromium to generate reports, the binary should be included in the artifact like this:
https://github.com/opensearch-project/dashboards-reports/blob/main/.github/workflows/dashboards-reports-test-and-build-workflow.yml#L67-L91

But this part is missing in build.sh.

To reproduce

Run opensearch and dashboards, reporting does not work because chromium binary reportsDashboards/.chromium/headless_shell does not exist

@joshuali925 joshuali925 added bug Something isn't working untriaged Issues that have not yet been triaged labels Nov 10, 2021
@peternied
Copy link
Member

What are the possible values of PLATFORM and ARCHITECTURE in build.sh?

PLATFORM can be:

  • linux
  • darwin
  • windows

ARCHITECTURE can be:

  • x64
  • arm64

See example usage

@joshuali925
Copy link
Member Author

will ARCHITECTURE be supplied?

[ -z "$ARCHITECTURE" ] && ARCHITECTURE=`uname -m`

this can also be x86_64, amd64, aarch64, ... but the case only accepts x64 and arm64

@peternied
Copy link
Member

peternied commented Nov 10, 2021

This is a better source of truth, here are the values that will be allowed by the build system

class BuildArgs:
    SUPPORTED_PLATFORMS = ["linux", "darwin", "windows"]
    SUPPORTED_ARCHITECTURES = [
        "x64",
        "arm64",
    ]
    ```
https://github.com/opensearch-project/opensearch-build/blob/main/src/build_workflow/build_args.py#L12-L17

@joshuali925
Copy link
Member Author

I see, thanks. What should I do if some combinations are not supported by reporting yet? We currently do not have chromium builds for darwin-arm64 and windows-arm64.

btw this also doesn't seem right

[ -z "$PLATFORM" ] && PLATFORM=`uname -s` | awk '{print tolower($0)}'

i think it's trying to do PLATFORM=$(uname -s | awk '{print tolower($0)}')

@dblock
Copy link
Member

dblock commented Nov 10, 2021

I see, thanks. What should I do if some combinations are not supported by reporting yet? We currently do not have chromium builds for darwin-arm64 and windows-arm64.

Manifests support excluding platforms by limiting the platforms supported as in here. There's no support for restricting architectures, we probably want to extend that code to be able to write:

platforms:
   - windows:x64
   - darwin:arm64

Feel free to open an issue/PR :)

i think it's trying to do PLATFORM=$(uname -s | awk '{print tolower($0)}')

Please fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Issues that have not yet been triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants