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

test: fix two issues running tests locally #4220

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

trentm
Copy link
Member

@trentm trentm commented Sep 5, 2024

Two issues with testing locally on my dev laptop:

  1. docker-compose (i.e. Docker Compose v1) is dead and, in some versions, now gone. Time for docker compose ... (i.e. v2): https://docs.docker.com/compose/migrate/
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

./test/script/run_tests.sh: line 93: docker-compose: command not found
  1. The mysql image has no layer for ARM, i.e. that natively runs on Apple Silicon.
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

[+] Running 0/1
 ⠼ mysql Pulling                                                                                                                                                                                                                                                                                 1.4s
no matching manifest for linux/arm64/v8 in the manifest list entries

Two issues with testing locally on my dev laptop:

1. `docker-compose` (i.e. Docker Compose v1) is dead and, in some versions, now gone. Time for `docker compose ...` (i.e. v2): https://docs.docker.com/compose/migrate/

```
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

./test/script/run_tests.sh: line 93: docker-compose: command not found
```

2. The mysql image has no layer for ARM, i.e. that natively runs on Apple Silicon.

```
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

[+] Running 0/1
 ⠼ mysql Pulling                                                                                                                                                                                                                                                                                 1.4s
no matching manifest for linux/arm64/v8 in the manifest list entries
```
@trentm trentm self-assigned this Sep 5, 2024
@trentm trentm merged commit ebd9380 into main Sep 5, 2024
19 checks passed
@trentm trentm deleted the trentm/fix-local-test-on-amd-and-docker-compose-v2 branch September 5, 2024 21:16
david-luna pushed a commit that referenced this pull request Oct 8, 2024
Two issues with testing locally on my dev laptop:

1. `docker-compose` (i.e. Docker Compose v1) is dead and, in some versions, now gone. Time for `docker compose ...` (i.e. v2): https://docs.docker.com/compose/migrate/

```
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

./test/script/run_tests.sh: line 93: docker-compose: command not found
```

2. The mysql image has no layer for ARM, i.e. that natively runs on Apple Silicon.

```
% npm test

> elastic-apm-node@4.7.3 test
> ./test/script/run_tests.sh

[+] Running 0/1
 ⠼ mysql Pulling                                                                                                                                                                                                                                                                                 1.4s
no matching manifest for linux/arm64/v8 in the manifest list entries
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants