You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Periodic CI randomly fails on fedora-31 for Echo 'Hello World' inside of the 'running' container #410
not ok 13 Echo 'Hello World' inside of the 'running' container
# (from function `die' in file test/system/helpers.bash, line 218,
# from function `run_toolbox' in file test/system/helpers.bash, line 107,
# in test file test/system/201-run.bats, line 11)
# `run_toolbox run -c running echo "Hello World"' failed with status 129
# $ ./toolbox run -c running echo Hello World
# [ rc=129 (** EXPECTED 0 **) ]
# #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# #| FAIL: exit code is 129; expected 0
# #\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
Notice that this is only affecting f31, f30 seems to be in the clear: https://softwarefactory-project.io/zuul/t/local/builds?job_name=test-with-podman-stable-f30&pipeline=periodic
Thank you @TristanCacqueray for reporting this. I, too, noticed that some time ago. I'm not sure what may be causing the issue. I'll try to investigate when I can.
I finally got to look at this and after a few hours of searching, I still don't know the reason why this is happening. The issue has also evolved and now looks like this:
not ok 12 Echo 'Hello World' inside of the 'running' container
# (from function `is' in file test/system/helpers.bash, line 261,
# in test file test/system/201-run.bats, line 12)
# `is "$output" "Hello World" "Should say 'Hello World'"' failed
# $ /usr/local/bin/toolbox run -c running echo Hello World
# #/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# #| FAIL: Should say 'Hello World'
# #| expected: 'Hello World'
# #| actual: ''
# #\^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The command itself is executed correctly but it seems to me that it either does not wait until the command is done executing or the output is just thrown away. I'm slightly suspicious of some change on Zuul's side...
I could not reproduce the issue locally (Fedora 31 in a VM running in a loop bats -t 201-run.bats until it fails). So I believe this has something to do with the environment the tests are run in (Zuul uses Ansible under the hood, right?).
I guess the easiest/quickest solution now is to only look for the return code and not for the string in $output.
Do we know why the echoed message from the Toolbox tests started to randomly disappear? It would be nice to know the root cause of it so that we can again start checking the text.
Activity
martymichal commentedon Apr 24, 2020
Thank you @TristanCacqueray for reporting this. I, too, noticed that some time ago. I'm not sure what may be causing the issue. I'll try to investigate when I can.
martymichal commentedon Jul 15, 2020
I finally got to look at this and after a few hours of searching, I still don't know the reason why this is happening. The issue has also evolved and now looks like this:
The command itself is executed correctly but it seems to me that it either does not wait until the command is done executing or the output is just thrown away. I'm slightly suspicious of some change on Zuul's side...
I could not reproduce the issue locally (Fedora 31 in a VM running in a loop
bats -t 201-run.batsuntil it fails). So I believe this has something to do with the environment the tests are run in (Zuul uses Ansible under the hood, right?).I guess the easiest/quickest solution now is to only look for the return code and not for the string in
$output.TristanCacqueray commentedon Jul 16, 2020
Zuul runs the test command using Ansible through that playbook: https://github.com/containers/toolbox/blob/master/playbooks/fedora-31/test-with-podman-stable.yaml#L15
Note that the tests are now failing because of
Program(s) ['go'] not found or not executable.morucci commentedon Jul 17, 2020
Looking at the build history. It seems the last success was a check job on that PR #438. The go command not found should be fixed by 438 I guess.
morucci commentedon Jul 17, 2020
Also note that periodic jobs run on master and harry/update-issue-templates branches. https://softwarefactory-project.io/zuul/t/local/builds?job_name=test-with-podman-stable-f31
harry/update-issue-templates contains a .zuul.yaml that lead to the periodic jobs to run on that branch too.
To avoid this Zuul provides a solution to exclude the unprotected branches: https://softwarefactory-project.io/r/18882/
Let us know if the toolbox master branch is set as protected in the project settings then we could merge the change above.
martymichal commentedon Jul 17, 2020
@morucci Yes, #438 fixes test being broken in master.
Damn, I did not realize that I created a branch in this repository. Thank you for the heads-up.
I'm not sure if the branch is protected or not. @debarshiray can answer that next week.
debarshiray commentedon Jul 22, 2020
Yes, the
masterbranch is now marked as protected.Thanks for your help with this issue!
test/system: Don't check the output of 'toolbox run'
morucci commentedon Jul 27, 2020
https://softwarefactory-project.io/r/18882 Is merged. Let's close the issue if that's ok from your side.
debarshiray commentedon Jul 27, 2020
Thanks for that change, @morucci
Do we know why the echoed message from the Toolbox tests started to randomly disappear? It would be nice to know the root cause of it so that we can again start checking the text.
martymichal commentedon Dec 3, 2023
This no longer seems to be a problem. Closing.