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

feat_: functional tests coverage #5805

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

igor-sirotin
Copy link
Collaborator

@igor-sirotin igor-sirotin commented Sep 5, 2024

Accompanying changes

  1. Moved the whole run-integration-tests target to _assets/scripts/run_integration_tests.sh
    Because it became too long to be in the Makefile.

  2. Fixed coverage uploading to codecov
    There was a missing upload-process command.

  3. Refactored things a bit to use relatives path and not to have looong lines

  4. Fixed .codecov.yml file

  5. Fixed integration tests run to properly shutdown statusd with stop_signal: SIGINT

  6. Added logs and coverage CI artifacts

  7. Run statusd containers with INTEGRATION_TESTS_DOCKER_UID user

Functional tests coverage

Implemented according to https://go.dev/blog/integration-test-coverage

You can see the results in the Codecov comment (to be improved):
image

Or at the codecov report page: filtered for functional flag:
image

@igor-sirotin igor-sirotin self-assigned this Sep 5, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Sep 5, 2024

Jenkins Builds

Click to see older builds (172)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 26c6a63 #1 2024-09-05 17:42:21 ~1 min tests 📄log
✖️ 26c6a63 #1 2024-09-05 17:43:34 ~2 min tests-rpc 📄log
✔️ 26c6a63 #1 2024-09-05 17:44:55 ~4 min linux 📦zip
✔️ 26c6a63 #1 2024-09-05 17:45:21 ~4 min ios 📦zip
✔️ 26c6a63 #1 2024-09-05 17:46:22 ~5 min android 📦aar
✖️ 9b6c4db #2 2024-09-05 17:49:37 ~1 min tests 📄log
✔️ 9b6c4db #2 2024-09-05 17:49:53 ~1 min android 📦aar
✔️ 9b6c4db #2 2024-09-05 17:50:20 ~1 min linux 📦zip
✔️ 9b6c4db #2 2024-09-05 17:58:19 ~9 min ios 📦zip
✔️ b2cd29f #3 2024-09-05 19:36:16 ~1 min android 📦aar
✔️ b2cd29f #3 2024-09-05 19:36:44 ~1 min linux 📦zip
✔️ b2cd29f #3 2024-09-05 19:37:37 ~2 min ios 📦zip
✔️ b2cd29f #3 2024-09-05 20:06:38 ~31 min tests 📄log
✔️ 383e145 #4 2024-09-05 19:42:35 ~1 min android 📦aar
✔️ 383e145 #4 2024-09-05 19:42:59 ~1 min linux 📦zip
✔️ 383e145 #4 2024-09-05 19:43:33 ~2 min tests-rpc 📄log
✔️ 383e145 #4 2024-09-05 19:44:05 ~3 min ios 📦zip
✔️ 55d6761 #5 2024-09-05 19:49:21 ~1 min tests-rpc 📄log
✔️ 55d6761 #5 2024-09-05 19:49:35 ~1 min android 📦aar
✔️ 55d6761 #5 2024-09-05 19:49:57 ~1 min linux 📦zip
✔️ 55d6761 #5 2024-09-05 19:50:50 ~2 min ios 📦zip
✔️ 55d6761 #6 2024-09-05 19:55:26 ~1 min tests-rpc 📄log
✔️ 8d28337 #6 2024-09-05 20:02:37 ~1 min android 📦aar
✔️ 8d28337 #6 2024-09-05 20:03:03 ~1 min linux 📦zip
✔️ 8d28337 #7 2024-09-05 20:03:44 ~2 min tests-rpc 📄log
✔️ 8d28337 #6 2024-09-05 20:04:08 ~2 min ios 📦zip
✔️ 8d28337 #4 2024-09-05 20:37:47 ~30 min tests 📄log
✔️ c14f648 #7 2024-09-05 20:41:18 ~1 min android 📦aar
✔️ c14f648 #7 2024-09-05 20:41:51 ~2 min linux 📦zip
✔️ c14f648 #8 2024-09-05 20:42:26 ~2 min tests-rpc 📄log
✔️ c14f648 #7 2024-09-05 20:42:31 ~2 min ios 📦zip
✔️ c14f648 #5 2024-09-05 21:11:54 ~32 min tests 📄log
✔️ 321c8b4 #8 2024-09-05 21:09:13 ~1 min android 📦aar
✔️ 321c8b4 #8 2024-09-05 21:09:36 ~1 min linux 📦zip
✔️ 321c8b4 #8 2024-09-05 21:10:33 ~2 min ios 📦zip
✔️ 90fb973 #9 2024-09-05 21:14:06 ~2 min android 📦aar
✔️ 90fb973 #9 2024-09-05 21:14:14 ~2 min linux 📦zip
✔️ 90fb973 #9 2024-09-05 21:15:08 ~3 min ios 📦zip
✔️ 90fb973 #6 2024-09-05 21:43:53 ~31 min tests 📄log
✔️ 4ae7b1f #10 2024-09-05 21:39:03 ~1 min android 📦aar
✔️ 4ae7b1f #10 2024-09-05 21:39:32 ~1 min linux 📦zip
✔️ 4ae7b1f #13 2024-09-05 21:40:10 ~2 min tests-rpc 📄log
✔️ 4ae7b1f #10 2024-09-05 21:40:35 ~2 min ios 📦zip
✔️ 4ae7b1f #14 2024-09-05 22:13:26 ~1 min android 📦aar
✔️ 4ae7b1f #14 2024-09-05 22:14:28 ~1 min linux 📦zip
✔️ 4ae7b1f #7 2024-09-05 22:15:03 ~30 min tests 📄log
✔️ 4ae7b1f #14 2024-09-05 22:16:26 ~3 min ios 📦zip
✔️ 84a2a58 #11 2024-09-05 21:50:24 ~1 min android 📦aar
✔️ 84a2a58 #11 2024-09-05 21:50:53 ~1 min linux 📦zip
✔️ 84a2a58 #14 2024-09-05 21:51:27 ~2 min tests-rpc 📄log
✔️ 84a2a58 #11 2024-09-05 21:51:51 ~2 min ios 📦zip
✔️ 9995dc1 #12 2024-09-05 22:06:03 ~1 min android 📦aar
✔️ 9995dc1 #12 2024-09-05 22:06:26 ~1 min linux 📦zip
✔️ 9995dc1 #12 2024-09-05 22:07:29 ~2 min ios 📦zip
✔️ 6e498f0 #13 2024-09-05 22:11:49 ~1 min android 📦aar
✔️ 6e498f0 #13 2024-09-05 22:12:18 ~1 min linux 📦zip
✔️ 6e498f0 #13 2024-09-05 22:13:07 ~2 min ios 📦zip
✔️ 6e498f0 #15 2024-09-05 22:15:39 ~1 min android 📦aar
✔️ 6e498f0 #15 2024-09-05 22:16:34 ~1 min linux 📦zip
✔️ 6e498f0 #15 2024-09-05 22:19:37 ~2 min ios 📦zip
✔️ 6e498f0 #16 2024-09-05 22:23:59 ~1 min android 📦aar
✔️ 6e498f0 #16 2024-09-05 22:24:34 ~1 min linux 📦zip
✔️ 6e498f0 #16 2024-09-05 22:25:27 ~2 min ios 📦zip
✔️ 6e498f0 #8 2024-09-05 22:46:06 ~30 min tests 📄log
✖️ 6e498f0 #9 2024-09-05 23:17:14 ~30 min tests 📄log
✔️ da0984a #17 2024-09-07 09:48:21 ~1 min android 📦aar
✔️ da0984a #17 2024-09-07 09:48:48 ~1 min linux 📦zip
✔️ da0984a #17 2024-09-07 09:50:01 ~3 min ios 📦zip
✖️ da0984a #10 2024-09-07 10:18:17 ~31 min tests 📄log
✔️ d0ae790 #23 2024-09-12 16:04:18 ~3 min tests-rpc 📄log
✔️ d0ae790 #18 2024-09-12 16:05:01 ~3 min linux 📦zip
✔️ d0ae790 #18 2024-09-12 16:05:12 ~3 min ios 📦zip
✔️ d0ae790 #18 2024-09-12 16:05:40 ~4 min android 📦aar
✔️ d0ae790 #11 2024-09-12 16:33:34 ~32 min tests 📄log
✔️ 8ae0f27 #19 2024-09-12 16:41:45 ~1 min android 📦aar
✔️ 8ae0f27 #19 2024-09-12 16:42:18 ~2 min linux 📦zip
✔️ 8ae0f27 #24 2024-09-12 16:43:00 ~2 min tests-rpc 📄log
✔️ 8ae0f27 #19 2024-09-12 16:43:21 ~3 min ios 📦zip
✔️ 8ae0f27 #12 2024-09-12 17:12:59 ~32 min tests 📄log
✔️ b827674 #20 2024-09-12 17:19:50 ~1 min android 📦aar
✔️ b827674 #20 2024-09-12 17:20:28 ~2 min linux 📦zip
✔️ b827674 #25 2024-09-12 17:21:13 ~2 min tests-rpc 📄log
✔️ b827674 #20 2024-09-12 17:21:35 ~3 min ios 📦zip
✔️ b827674 #13 2024-09-12 17:49:13 ~30 min tests 📄log
✔️ 9cd2d33 #21 2024-09-12 23:10:29 ~1 min android 📦aar
✔️ 9cd2d33 #21 2024-09-12 23:10:59 ~2 min linux 📦zip
✔️ 9cd2d33 #26 2024-09-12 23:11:27 ~2 min tests-rpc 📄log
✔️ 9cd2d33 #21 2024-09-12 23:11:59 ~3 min ios 📦zip
✔️ 9cd2d33 #14 2024-09-12 23:40:05 ~31 min tests 📄log
✔️ 3a992f2 #22 2024-09-13 16:23:54 ~1 min android 📦aar
✖️ 3a992f2 #27 2024-09-13 16:24:10 ~1 min tests-rpc 📄log
✔️ 3a992f2 #22 2024-09-13 16:24:26 ~2 min linux 📦zip
✔️ 3a992f2 #22 2024-09-13 16:25:26 ~3 min ios 📦zip
✔️ 3a992f2 #15 2024-09-13 16:53:18 ~30 min tests 📄log
✔️ 9cd7100 #23 2024-09-13 21:35:39 ~1 min android 📦aar
✖️ 9cd7100 #28 2024-09-13 21:35:56 ~1 min tests-rpc 📄log
✔️ 9cd7100 #23 2024-09-13 21:36:09 ~2 min linux 📦zip
✔️ 9cd7100 #23 2024-09-13 21:37:22 ~3 min ios 📦zip
✖️ 9cd7100 #29 2024-09-13 22:02:31 ~38 sec tests-rpc 📄log
✔️ 9cd7100 #16 2024-09-13 22:05:18 ~31 min tests 📄log
✔️ d83b689 #24 2024-09-14 11:31:03 ~1 min android 📦aar
✔️ d83b689 #24 2024-09-14 11:31:35 ~2 min linux 📦zip
✖️ d83b689 #30 2024-09-14 11:32:01 ~2 min tests-rpc 📄log
✔️ d83b689 #24 2024-09-14 11:32:45 ~3 min ios 📦zip
✔️ d83b689 #17 2024-09-14 12:00:42 ~31 min tests 📄log
✖️ d83b689 #31 2024-09-14 16:24:46 ~1 min tests-rpc 📄log
✖️ 1dbd194 #32 2024-09-14 17:12:59 ~1 min tests-rpc 📄log
✔️ 1dbd194 #25 2024-09-14 17:13:02 ~1 min android 📦aar
✔️ 1dbd194 #25 2024-09-14 17:13:31 ~1 min linux 📦zip
✔️ 1dbd194 #18 2024-09-14 17:42:56 ~31 min tests 📄log
✔️ 220a4d4 #26 2024-09-14 17:25:51 ~1 min android 📦aar
✔️ 220a4d4 #26 2024-09-14 17:26:17 ~2 min linux 📦zip
✔️ 220a4d4 #33 2024-09-14 17:26:24 ~2 min tests-rpc 📄log
✖️ 220a4d4 #19 2024-09-14 18:15:02 ~31 min tests 📄log
✔️ daad5db #27 2024-09-14 18:08:31 ~2 min android 📦aar
✔️ daad5db #27 2024-09-14 18:08:32 ~2 min linux 📦zip
✖️ daad5db #34 2024-09-14 18:08:58 ~2 min tests-rpc 📄log
✔️ daad5db #20 2024-09-14 18:46:35 ~31 min tests 📄log
✔️ c1eb094 #28 2024-09-16 11:20:47 ~1 min android 📦aar
✔️ c1eb094 #28 2024-09-16 11:21:18 ~1 min linux 📦zip
✖️ c1eb094 #35 2024-09-16 11:22:07 ~2 min tests-rpc 📄log
✔️ c1eb094 #28 2024-09-16 11:24:59 ~5 min ios 📦zip
✔️ c1eb094 #21 2024-09-16 11:51:02 ~31 min tests 📄log
✔️ df4d4aa #29 2024-09-16 11:37:41 ~1 min android 📦aar
✖️ df4d4aa #36 2024-09-16 11:39:03 ~2 min tests-rpc 📄log
✔️ df4d4aa #29 2024-09-16 11:40:05 ~3 min linux 📦zip
✔️ df4d4aa #29 2024-09-16 11:42:13 ~5 min ios 📦zip
✔️ df4d4aa #22 2024-09-16 12:22:21 ~31 min tests 📄log
✔️ 93e17ec #30 2024-09-16 15:54:08 ~1 min android 📦aar
✔️ 93e17ec #30 2024-09-16 15:54:36 ~2 min linux 📦zip
✔️ 93e17ec #37 2024-09-16 15:55:14 ~2 min tests-rpc 📄log
✔️ 93e17ec #30 2024-09-16 15:58:38 ~6 min ios 📦zip
✔️ 93e17ec #23 2024-09-16 16:24:06 ~31 min tests 📄log
✔️ ac8ba48 #31 2024-09-16 15:57:56 ~1 min android 📦aar
✔️ ac8ba48 #31 2024-09-16 15:58:28 ~2 min linux 📦zip
✔️ ac8ba48 #38 2024-09-16 15:58:59 ~2 min tests-rpc 📄log
✔️ ac8ba48 #31 2024-09-16 16:04:44 ~5 min ios 📦zip
✔️ ac8ba48 #24 2024-09-16 16:55:59 ~31 min tests 📄log
✔️ 25a4377 #32 2024-09-16 19:15:58 ~2 min linux 📦zip
✔️ 25a4377 #39 2024-09-16 19:16:16 ~2 min tests-rpc 📄log
✔️ 25a4377 #32 2024-09-16 19:18:49 ~5 min android 📦aar
✔️ 25a4377 #32 2024-09-16 19:19:10 ~5 min ios 📦zip
✔️ 25a4377 #25 2024-09-16 19:45:56 ~32 min tests 📄log
✔️ 0cc6c61 #33 2024-09-16 19:56:21 ~1 min android 📦aar
✔️ 0cc6c61 #33 2024-09-16 19:56:48 ~2 min linux 📦zip
✔️ 0cc6c61 #40 2024-09-16 19:57:17 ~2 min tests-rpc 📄log
✔️ 0cc6c61 #33 2024-09-16 20:00:31 ~5 min ios 📦zip
✔️ 0cc6c61 #26 2024-09-16 20:25:43 ~30 min tests 📄log
✔️ e8b06ed #34 2024-09-16 21:28:27 ~1 min android 📦aar
✔️ e8b06ed #34 2024-09-16 21:28:47 ~1 min linux 📦zip
✔️ e8b06ed #41 2024-09-16 21:29:38 ~2 min tests-rpc 📄log
✔️ e8b06ed #34 2024-09-16 21:32:56 ~6 min ios 📦zip
✔️ e8b06ed #27 2024-09-16 21:58:06 ~31 min tests 📄log
✔️ b92c0a6 #42 2024-09-23 21:29:12 ~2 min tests-rpc 📄log
✔️ b92c0a6 #35 2024-09-23 21:30:47 ~4 min linux 📦zip
✔️ b92c0a6 #35 2024-09-23 21:31:13 ~4 min android 📦aar
✔️ b92c0a6 #35 2024-09-23 21:31:45 ~5 min ios 📦zip
✔️ b92c0a6 #28 2024-09-23 21:58:31 ~32 min tests 📄log
✔️ 11e500b #43 2024-09-23 21:31:57 ~2 min tests-rpc 📄log
✔️ e745d4d #36 2024-09-23 21:32:51 ~1 min android 📦aar
✔️ e745d4d #36 2024-09-23 21:33:01 ~1 min linux 📦zip
✔️ e745d4d #44 2024-09-23 21:33:26 ~1 min tests-rpc 📄log
✔️ e745d4d #36 2024-09-23 21:35:22 ~3 min ios 📦zip
✔️ e745d4d #29 2024-09-23 22:30:42 ~31 min tests 📄log
✔️ c3ab708 #37 2024-09-24 12:43:49 ~1 min android 📦aar
✔️ c3ab708 #37 2024-09-24 12:44:21 ~1 min linux 📦zip
✔️ c3ab708 #45 2024-09-24 12:45:15 ~2 min tests-rpc 📄log
✔️ c3ab708 #37 2024-09-24 12:46:07 ~3 min ios 📦zip
✔️ c3ab708 #30 2024-09-24 13:15:28 ~32 min tests 📄log
✔️ af06af2 #38 2024-09-24 14:18:30 ~3 min ios 📦zip
✔️ af06af2 #38 2024-09-24 14:18:30 ~3 min linux 📦zip
✔️ af06af2 #38 2024-09-24 14:18:59 ~4 min android 📦aar
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 06edb43 #47 2024-09-24 14:19:30 ~3 min tests-rpc 📄log
✔️ 06edb43 #39 2024-09-24 14:21:59 ~3 min ios 📦zip
✔️ 06edb43 #39 2024-09-24 14:26:57 ~8 min linux 📦zip
✔️ 06edb43 #39 2024-09-24 14:28:40 ~9 min android 📦aar
✔️ 28e19e4 #40 2024-09-24 14:31:20 ~3 min ios 📦zip
✔️ 28e19e4 #48 2024-09-24 14:36:56 ~8 min tests-rpc 📄log
✔️ 28e19e4 #40 2024-09-24 14:38:33 ~10 min linux 📦zip
✔️ 28e19e4 #40 2024-09-24 14:39:49 ~10 min android 📦aar
✔️ 28e19e4 #33 2024-09-24 15:11:00 ~33 min tests 📄log

@igor-sirotin igor-sirotin force-pushed the feat/integration-tests-coverage branch 2 times, most recently from b2cd29f to 383e145 Compare September 5, 2024 19:40
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@77ef8f1). Learn more about missing BASE report.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5805   +/-   ##
==========================================
  Coverage           ?   11.56%           
==========================================
  Files              ?      834           
  Lines              ?   151028           
  Branches           ?        0           
==========================================
  Hits               ?    17473           
  Misses             ?   131476           
  Partials           ?     2079           
Flag Coverage Δ
functional 11.56% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@igor-sirotin igor-sirotin force-pushed the feat/integration-tests-coverage branch 3 times, most recently from 6e498f0 to 4ae7b1f Compare September 5, 2024 22:11
@igor-sirotin igor-sirotin reopened this Sep 5, 2024
@igor-sirotin igor-sirotin marked this pull request as draft September 7, 2024 09:51
@jakubgs
Copy link
Member

jakubgs commented Sep 9, 2024

You'll have to fix what user the tests in the container run as:

stderr: warning: failed to remove integration-tests/coverage/binary/covmeta.f80975c4b9bbdd5aa45ac784fc95ace6: Permission denied

Which means it should run as user with UID set to 1001:
https://github.com/status-im/infra-ci/blob/fe8833ffd1490e00483e42dc09386b4736c11209/ansible/group_vars/ci-slave-linux.yml#L12-L13

@igor-sirotin
Copy link
Collaborator Author

@jakubgs thanks you! Indeed, I completely forgot that all of this is executed in docker 🤦
I'll adapt the container to run with proper UID.

I have 2 questions though.

  1. Should I also pass any specifig GID?
  2. Currently the job is failing at Declarative: Checkout SCM stage, before the RPC tests stage with docker.
    So even with UID it won't auto-fix. Is there any way to clean it up without opening a new PR?

@jakubgs
Copy link
Member

jakubgs commented Sep 10, 2024

  1. You could just use the same as UID, so 1001:
    jakubgs@linux-01.he-eu-hel1.ci.devel:~ % id jenkins
    uid=1001(jenkins) gid=1001(jenkins) groups=1001(jenkins),999(docker),30000(nixbld)
    
  2. I already cleaned it up yesterday.

Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

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

I see you changed user in integration-tests/docker-compose.test.status-go.yml, but what about integration-tests/docker-compose.anvil.yml?

@igor-sirotin
Copy link
Collaborator Author

The coverage report is empty, because covcouters file is not generated (though covmeta is).
This is probably because of the way statusd is shutdown. We need to ensure it's not panicing and that it's shutdown gracefully.

With a simple statusd launch locally without docker I get a proper coverage report.

@igor-sirotin
Copy link
Collaborator Author

igor-sirotin commented Sep 14, 2024

Alright, shutdown fixed by changing the stop signal:

Seems that statusd is not reacting to the default SIGTERM. which should be fixed, but not in this PR.

@igor-sirotin
Copy link
Collaborator Author

igor-sirotin commented Sep 14, 2024

But now there's a new issue. integration-tests/reports/report.xml is missing at the end. Reproduced locally.
When running run_integration_tests.sh directly (without setting INTEGRATION_TESTS_DOCKER_UID), the report.xml is created just fine. So it's a permissions issue, but I don't see any errors in logs. Also tests-rpc.log is completely empty 🤔

UPD: never mind, the testswere just never launched. Because one of the anvil containers didn't start.
Fixed by removing the explicit user in docker-compose.anvil.yml

@igor-sirotin
Copy link
Collaborator Author

igor-sirotin commented Sep 14, 2024

Now the tests are simply failing 🤔

Error not in chain call                 
error="anvil:8545.error: Post \"http://anvil:8545\": dial tcp: lookup anvil on 127.0.0.11:53: server misbehaving" 
chain=31337

OK, this is fixed now.
The issue was that I was stopping tests-rpc container before it finishes.

@igor-sirotin igor-sirotin force-pushed the feat/integration-tests-coverage branch 3 times, most recently from daad5db to c1eb094 Compare September 16, 2024 11:19
@igor-sirotin igor-sirotin marked this pull request as ready for review September 16, 2024 20:37
@igor-sirotin igor-sirotin changed the title feat_: integration tests coverage feat_: functional tests coverage Sep 16, 2024
@igor-sirotin igor-sirotin requested review from a team and jakubgs September 16, 2024 20:38
@igor-sirotin igor-sirotin force-pushed the feat/integration-tests-coverage branch 2 times, most recently from 11e500b to e745d4d Compare September 23, 2024 21:30
@igor-sirotin
Copy link
Collaborator Author

@status-im/devops can I please have your eyes on this as well? 🙏

@@ -494,18 +494,15 @@ test-verif-proxy-wrapper:
CGO_CFLAGS="$(CGO_CFLAGS)" go test -v github.com/status-im/status-go/rpc -tags gowaku_skip_migrations,nimbus_light_client -run ^TestProxySuite$$ -testify.m TestRun -ldflags $(LDFLAGS)


run-integration-tests: SHELL := /bin/sh
Copy link
Member

Choose a reason for hiding this comment

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

Why are we removing the SHELL override here? The script just depends on Docker right? And that's always provided by the system, never by Nix shell, so this override is valid.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jakubgs this is because of codecov CLI tool, which we have as nix derivation:

url = "https://cli.codecov.io/v${version}/${platform}/codecov";

It's the only thing, but I didn't see a simple way to avoid it here 🤷

@@ -42,11 +58,11 @@ pipeline {
always {
script {
archiveArtifacts(
artifacts: '**/results.xml',
artifacts: 'integration-tests/reports/*.xml, integration-tests/*.log, integration-tests/coverage/coverage.html',
Copy link
Member

Choose a reason for hiding this comment

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

If this is a list we should indicate it as such:

Suggested change
artifacts: 'integration-tests/reports/*.xml, integration-tests/*.log, integration-tests/coverage/coverage.html',
artifacts: ['integration-tests/reports/*.xml, integration-tests/*.log, integration-tests/coverage/coverage.html'],

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, @jakubgs I'm confused actually.

Jenkins docs say that artifacts is of string type:

image

And show this as example to pass multiple artifcats:

How to archive multiple artifacts with different patterns:
archiveArtifacts artifacts: 'target/*.jar, target/*.war'

@igor-sirotin igor-sirotin force-pushed the feat/integration-tests-coverage branch 3 times, most recently from 06edb43 to 28e19e4 Compare September 24, 2024 14:27
@igor-sirotin igor-sirotin merged commit d794e43 into develop Sep 24, 2024
11 checks passed
@igor-sirotin igor-sirotin deleted the feat/integration-tests-coverage branch September 24, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants