Commit fefe0ae
authored
[AGNTLOG-235] Add 10 second sleep to e2e container (#45503)
### What does this PR do?
Adds a 10 second sleep to containers the agent is supposed to tail e2e tests. This allows the agent to detect the container before it gets killed by kubernetes.
### Motivation
These tests were found to be flaky, the goal is this PR to is to fix the flakiness these tests were causing. The flakiness presents itself as the agent not detecting the container that it is supposed to collect logs from.
### Describe how you validated your changes
I was able to replicate the issue reliably by forcing the agent container to restart immediately prior to running the ubuntu container here, causing the agent container to "miss" the ubuntu container before it had been killed by kubernetes. Adding the 10 second sleep was able to fix that issue.
### Additional Notes
Co-authored-by: lucas.liseth <lucas.liseth@datadoghq.com>1 parent 6d0fa91 commit fefe0ae
1 file changed
Lines changed: 15 additions & 9 deletions
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
0 commit comments