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] Not able to run functional test on my MacOS #2087

Open
seraphjiang opened this issue Aug 8, 2022 · 5 comments
Open

[BUG] Not able to run functional test on my MacOS #2087

seraphjiang opened this issue Aug 8, 2022 · 5 comments
Labels

Comments

@seraphjiang
Copy link
Member

seraphjiang commented Aug 8, 2022

Describe the bug

Clone repo and pull code,

try to run functional test ciGroup1 on my local Mac, but got error,

huanji@88665a37b322 huan-osd % node scripts/functional_tests.js --include ciGroup1

 warn ❗️❗️❗️
 warn ❗️❗️❗️
 warn ❗️❗️❗️
 warn    Don't forget to use `node scripts/build_opensearch_dashboards_platform_plugins` to build plugins you plan on testing
 warn ❗️❗️❗️
 warn ❗️❗️❗️
 warn ❗️❗️❗️
 info Running /Users/huanji/src/huan-osd/test/functional/config.js
 │ info Config loaded
 │ info Only running suites (and their sub-suites) if they include the tag(s): [ 'ciGroup1' ]
 │ info Installing from snapshot
     │ info version: 2.0.1
     │ info install path: /Users/huanji/src/huan-osd/.opensearch/opensearch-test-cluster
     │ info license: oss
     │ warn [opensearch-dashboards] already stopped

Snapshots are only available for Linux
    at exports.createCliError (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/errors.js:33:17)
    at getArtifactSpecForSnapshotFromUrl (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/artifact.js:210:11)
    at Function.getSnapshot (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/artifact.js:298:32)
    at Object.installSnapshot [as downloadSnapshot] (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/install/snapshot.js:73:35)
    at installSnapshot (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/install/snapshot.js:105:21)
    at Cluster.installSnapshot (/Users/huanji/src/huan-osd/packages/osd-opensearch/target/cluster.js:178:15)
    at OpenSearchTestCluster.start (/Users/huanji/src/huan-osd/packages/osd-test/src/legacy_opensearch/legacy_opensearch_test_cluster.js:95:38)
    at runOpenSearch (/Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/lib/run_opensearch.js:56:17)
    at /Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/tasks.js:113:28
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at withProcRunner (/Users/huanji/src/huan-osd/packages/osd-dev-utils/target/proc_runner/with_proc_runner.js:45:9)
    at runTests (/Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/tasks.js:108:5)
    at /Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/cli/run_tests/cli.js:46:5
    at runCli (/Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/lib/run_cli.js:52:5)
    at Object.runTestsCli (/Users/huanji/src/huan-osd/packages/osd-test/src/functional_tests/cli/run_tests/cli.js:44:3)

Expected behavior

  1. developer should be able to run any functional test from most popular OS (MacOS, Windows, Linux)
  2. add documentation to list all environment variable which are supported and useful to run test e.g. export TEST_OPENSEARCH_FROM=
@seraphjiang seraphjiang added bug Something isn't working untriaged labels Aug 8, 2022
@ashwin-pc
Copy link
Member

I agree, especially since this makes writing functional tests quite painful. What are the current limitations for enabling this?

@aoguan1990 aoguan1990 added the enhancement New feature or request label Aug 9, 2022
@aoguan1990
Copy link
Contributor

aoguan1990 commented Aug 9, 2022

We do not officially support for MacOS.
Related Issue:

  • OpenSearch Dashboards Repo: #2088
  • OpenSearch Build Repo: #38

@ashwin-pc ashwin-pc removed bug Something isn't working untriaged labels Aug 16, 2022
@seraphjiang
Copy link
Member Author

the request is to ask for support Mac

@kavilla
Copy link
Member

kavilla commented Sep 27, 2022

Triage:

Thanks @seraphjiang perhaps we can get escalation on mac support on the build repo issue? opensearch-project/opensearch-build#38 since this issue is blocked by the build repo issue.

@joshuarrrr
Copy link
Member

@kavilla is this closed via #3537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants