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

Update CI to use cargo make #136

Merged
merged 3 commits into from
Sep 3, 2020
Merged

Update CI to use cargo make #136

merged 3 commits into from
Sep 3, 2020

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Sep 3, 2020

This PR converts the scripts use to run YAML tests on CI to

  1. use cargo make
  2. use rust:latest docker image, and install a specific nightly toolchain to run CI tests, since the unstable cargo test JSON output is used.

The use of the ES_TEST_SERVER env var is replaced with ELASTICSEARCH_URL in all places, for consistency.

This commit replaces the use of ES_TEST_SERVER with
ELASTICSEARCH_URL, for consistency
This commit attempts to simplify the CI test flow
by

1. Using rust latest docker image as base image
  and using a specific rust toolchain
2. Using cargo make to run the testing process
@russcam russcam requested a review from swallez September 3, 2020 03:44
@russcam
Copy link
Contributor Author

russcam commented Sep 3, 2020

I'm having some issues with Docker on Windows WSL2 in testing this change locally - Disk Usage consistently jumps to hover between 50-100% and docker becomes unresponsive at the point of running cargo test. I haven't experienced this previously so tried downgrading to an older version of Docker Desktop, but the problem persists.

@russcam
Copy link
Contributor Author

russcam commented Sep 3, 2020

.ci/DockerFile Outdated Show resolved Hide resolved
.ci/DockerFile Outdated Show resolved Hide resolved
This commit updates the Dockerfile used in CI tests to use rust:latest base image
and pull the image before building to ensure that latest tag is the latest release.

It appears that the -Z unstable-options --format json works on rust stable channel,
despite rust documentation to the contrary.
@russcam russcam merged commit 6c13b1d into master Sep 3, 2020
russcam added a commit that referenced this pull request Sep 3, 2020
This commit simplifies the CI test flow
by

- Using rust latest docker image as base image
- Using cargo make to run the testing process

pull the docker image before building to ensure that latest tag
is the latest release.

It appears that the -Z unstable-options --format json works
on rust stable channel, despite rust documentation to the contrary.

It also replaces the use of ES_TEST_SERVER with
ELASTICSEARCH_URL, for consistency

(cherry picked from commit 6c13b1d)
russcam added a commit that referenced this pull request Sep 3, 2020
This commit simplifies the CI test flow
by

- Using rust latest docker image as base image
- Using cargo make to run the testing process

pull the docker image before building to ensure that latest tag
is the latest release.

It appears that the -Z unstable-options --format json works
on rust stable channel, despite rust documentation to the contrary.

It also replaces the use of ES_TEST_SERVER with
ELASTICSEARCH_URL, for consistency

(cherry picked from commit 6c13b1d)
@russcam russcam deleted the update-ci branch September 3, 2020 23:35
@swallez swallez added enhancement New feature or request v7.10.0-alpha.1 labels Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v7.10.0-alpha.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants