Skip to content

Conversation

aanm
Copy link
Member

@aanm aanm commented Sep 10, 2024

The changes on this PR helps to decrease the test run time significantly. During testing if this was possible, a lot of flakes were being caused by the egress-gateway, egress-gateway-with-l7-policy and from-cidr-host-netns tests which is why they run separately without concurrency and then all the other tests run parallel afterwards.

You can find 6 successful runs in https://github.com/cilium/cilium/actions/runs/11220270835. The attempt #4 that failed was caused by a faulty connection to one.one.one.one.

Name Before After Time Decreased
Test 1 00:49:18 00:25:14 -48.82%
Test 2 00:46:53 00:24:37 -47.49%
Test 3 00:47:12 00:25:14 -46.54%
Test 4 00:55:41 00:32:41 -41.30%
Test 5 00:52:23 00:28:58 -44.70%
Test 6 01:07:00 00:38:44 -42.19%
Test 7 01:10:00 00:39:11 -44.02%
Test 8 00:56:24 00:32:19 -42.70%
Test 9 00:54:19 00:32:27 -40.26%
Test 10 00:48:46 00:25:52 -46.96%
Test 11 01:04:00 00:31:34 -50.68%
Test 12 01:03:00 00:37:17 -40.82%
Test 13 00:46:53 00:22:37 -51.76%
Test 14 01:01:00 00:37:01 -39.32%
Test 15 00:58:01 00:32:17 -44.36%
Test 16 01:02:00 00:35:16 -43.12%
Test 17 01:01:00 00:33:11 -45.60%
Test 18 00:59:33 00:31:09 -47.69%
Test 19 01:02:00 00:34:44 -43.98%
Test 20 01:04:00 00:35:07 -45.13%
Test 21 01:01:00 00:39:52 -34.64%
Test 22 01:05:00 00:35:15 -45.77%
Test 23 00:30:29 00:16:50 -44.78%

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 10, 2024
@aanm
Copy link
Member Author

aanm commented Sep 10, 2024

/ci-e2e-upgrade

@aanm aanm marked this pull request as ready for review September 10, 2024 15:25
@aanm aanm requested review from a team as code owners September 10, 2024 15:25
@aanm aanm requested a review from nebril September 10, 2024 15:25
@aanm aanm marked this pull request as draft September 10, 2024 15:25
@aanm aanm removed the request for review from nebril September 10, 2024 15:26
@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from f6230b2 to 6e55881 Compare September 30, 2024 13:12
@aanm
Copy link
Member Author

aanm commented Sep 30, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 6e55881 to 67c152f Compare October 4, 2024 08:30
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 67c152f to 04eabbb Compare October 4, 2024 08:33
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 04eabbb to 1704847 Compare October 4, 2024 11:13
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 1704847 to 4e9e6f9 Compare October 4, 2024 11:13
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

1 similar comment
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 4e9e6f9 to ce7e3c9 Compare October 4, 2024 14:40
@aanm
Copy link
Member Author

aanm commented Oct 4, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from ce7e3c9 to e397240 Compare October 7, 2024 11:13
@aanm
Copy link
Member Author

aanm commented Oct 7, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from e397240 to 815a084 Compare October 7, 2024 12:07
@aanm
Copy link
Member Author

aanm commented Oct 7, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 815a084 to a1a1019 Compare October 7, 2024 14:00
@aanm
Copy link
Member Author

aanm commented Oct 7, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from a1a1019 to e95a1be Compare October 7, 2024 16:53
@aanm
Copy link
Member Author

aanm commented Oct 7, 2024

/ci-e2e-upgrade

@aanm aanm changed the title Pr/sync upgrade e2e concurrency Add concurrency to e2e-upgrade tests Oct 8, 2024
@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 6939529 to 3e00088 Compare October 23, 2024 10:26
@aanm
Copy link
Member Author

aanm commented Oct 23, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 3e00088 to 8b9cc75 Compare October 23, 2024 10:39
@aanm
Copy link
Member Author

aanm commented Oct 23, 2024

/ci-e2e-upgrade

@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 8b9cc75 to 269dac3 Compare October 23, 2024 11:02
@aanm
Copy link
Member Author

aanm commented Oct 23, 2024

/ci-e2e-upgrade

aanm added 4 commits October 23, 2024 17:44
Adding concurrency to tests-e2e upgrade workflow helps to decrease the
time it takes to run the tests on our CI.

| Name      | Before    | After     | Time Decreased |
|-----------|-----------|-----------|----------------|
| Test 1    | 00:49:18  | 00:25:14  | -48.82%        |
| Test 2    | 00:46:53  | 00:24:37  | -47.49%        |
| Test 3    | 00:47:12  | 00:25:14  | -46.54%        |
| Test 4    | 00:55:41  | 00:32:41  | -41.30%        |
| Test 5    | 00:52:23  | 00:28:58  | -44.70%        |
| Test 6    | 01:07:00  | 00:38:44  | -42.19%        |
| Test 7    | 01:10:00  | 00:39:11  | -44.02%        |
| Test 8    | 00:56:24  | 00:32:19  | -42.70%        |
| Test 9    | 00:54:19  | 00:32:27  | -40.26%        |
| Test 10   | 00:48:46  | 00:25:52  | -46.96%        |
| Test 11   | 01:04:00  | 00:31:34  | -50.68%        |
| Test 12   | 01:03:00  | 00:37:17  | -40.82%        |
| Test 13   | 00:46:53  | 00:22:37  | -51.76%        |
| Test 14   | 01:01:00  | 00:37:01  | -39.32%        |
| Test 15   | 00:58:01  | 00:32:17  | -44.36%        |
| Test 16   | 01:02:00  | 00:35:16  | -43.12%        |
| Test 17   | 01:01:00  | 00:33:11  | -45.60%        |
| Test 18   | 00:59:33  | 00:31:09  | -47.69%        |
| Test 19   | 01:02:00  | 00:34:44  | -43.98%        |
| Test 20   | 01:04:00  | 00:35:07  | -45.13%        |
| Test 21   | 01:01:00  | 00:39:52  | -34.64%        |
| Test 22   | 01:05:00  | 00:35:15  | -45.77%        |
| Test 23   | 00:30:29  | 00:16:50  | -44.78%        |

Signed-off-by: André Martins <andre@cilium.io>
Since a lot of flakes were being caused by these tests we need to run
them separately first and then run all the other tests concurrently.

We will rename the tests that need to be run sequentially by prefixing
their names with "seq-".

Signed-off-by: André Martins <andre@cilium.io>
Splitting the connectivity tests commands together with comments will
make it clear what are we testing as this was causing some confusion
which tests were being tested on each "cilium connectivity" invocation.

Signed-off-by: André Martins <andre@cilium.io>
With the introduction of concurrent tests, it takes a little bit more
time for all the services to be propagated. Thus we need to increase the
timeout from 30 seconds to 1 minute.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/sync-upgrade-e2e-concurrency branch from 269dac3 to a847efb Compare October 23, 2024 15:45
@aanm
Copy link
Member Author

aanm commented Oct 23, 2024

/ci-e2e-upgrade

With the introduction of concurrent tests, it takes a little bit more
time for all the policies to be propagated. Thus we need to increase the
timeout from 15 seconds to 30 seconds.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm requested a review from a team as a code owner October 24, 2024 07:48
@aanm aanm requested a review from derailed October 24, 2024 07:48
@aanm
Copy link
Member Author

aanm commented Oct 24, 2024

/test

@aanm aanm removed the dont-merge/preview-only Only for preview or testing, don't merge it. label Oct 24, 2024
@aanm aanm added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 45d179e Oct 24, 2024
203 of 204 checks passed
@aanm aanm deleted the pr/sync-upgrade-e2e-concurrency branch October 24, 2024 09:31
julianwiedmann added a commit that referenced this pull request Feb 27, 2025
Inspired by #34806 and
#37704, enable concurrent execution
when running the connectivity tests. This substantially reduces the
workflow's runtime.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
julianwiedmann added a commit that referenced this pull request Feb 27, 2025
Inspired by #34806 and
#37704, enable concurrent execution
when running the connectivity tests. This substantially reduces the
workflow's runtime.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
github-merge-queue bot pushed a commit that referenced this pull request Feb 28, 2025
Inspired by #34806 and
#37704, enable concurrent execution
when running the connectivity tests. This substantially reduces the
workflow's runtime.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
julianwiedmann added a commit that referenced this pull request Feb 28, 2025
[ upstream commit 6bf3a14 ]

Inspired by #34806 and
#37704, enable concurrent execution
when running the connectivity tests. This substantially reduces the
workflow's runtime.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
github-merge-queue bot pushed a commit that referenced this pull request Mar 3, 2025
[ upstream commit 6bf3a14 ]

Inspired by #34806 and
#37704, enable concurrent execution
when running the connectivity tests. This substantially reduces the
workflow's runtime.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants