-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 433 suddenly started randomly failing on Azure Ubuntu CI #6739
Comments
I just queued Azure DevOps Ubuntu Linux CI runs for all commits in the range mentioned above to bisect the root cause. |
None of the commits in that range seems to have anything to do with such a failure... and I cannot reproduce on my Debian machine. |
I guessed so. Then probably something changed on the Ubuntu version that Azure uses. I will try to verify this by running previous commits on there later today. |
It seems the test started randomly failing since the 2021-03-11. I re-triggered this build from 2021-03-10 which failed due to a network connectivity issue in the first run, let's see how this turns out: |
Okay, the one above worked on the first try. Let's try the last commit from 2021-03-10 again: |
So the one above failed as well: https://dev.azure.com/daniel0244/curl/_build/results?buildId=5057&view=logs&j=9d58b9ac-e1e6-53b6-f83a-1f9f1d912522&t=51a4b246-0fa1-595b-3cc7-3e7aeb2b7380&l=1824 I guess something in the Azure CI environment has changed, probably the switch to Ubuntu 20.04 LTS which is causing this. @bagder do you happen to have such a VM around for re-production purposes? It would probably require running the test suite multiple times until it fails randomly. |
I have a 18.04 VM here. Do we know if it requires 20.04 to fail? I could probably set one up, it might be useful in the future as well. |
That is the theory to investigate here. I have this theory since Azure DevOps recently changed ubuntu-latest to 20.04. |
Took me a while but now I have a 20.04 VM with a fresh curl build and... test 433 works fine here! 😞 |
I guess this is a behavioral issue that only appears if the whole test suite is run (multiple times). |
This is a weird one. It looks like the last line of the curlrc file is not read, but why. It could be a bug in curl. Try adding DEBUG_CONFIG to the preprocessor macros Lines 187 to 189 in 2f33be8
Lines 240 to 242 in 2f33be8
|
In the most recent commits on master I don't see any test 433 failures on azure. |
@jay: it also lacks the header in the request so I think it rather looks like it doesn't read the |
Use #6756 to run experiments |
XDG_CONFIG_HOME is set by perl to |
curl tool is called several times and there's debug output each time it's called. what I am looking at is the debug output in stderr logfile which should be the right one,
I've modified the debug output to dump command line arguments as well, to be sure. My guess is the shell sets XDG_CONFIG_HOME |
Yes clearly something is setting it anyway after
|
BTW, in my Ubuntu 20.04 VM I don't get $ env | grep XDG
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_MENU_PREFIX=gnome-
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop |
Something in that environment sets XDG_CONFIG_HOME for us in a way that breaks the test. Fixes #6739
I did this
Checked recent master branch and PR Azure DevOps Ubuntu-based CI builds.
I expected the following
All tests to work on Linux / Ubuntu like before.
Examples
https://dev.azure.com/daniel0244/curl/_build/results?buildId=5042&view=logs&j=8165c288-ede3-54c0-ec36-33b42243957c&t=d264b5ad-e851-5f24-484d-d9cf1546c408&l=1638
https://dev.azure.com/daniel0244/curl/_build/results?buildId=5044&view=logs&j=9d58b9ac-e1e6-53b6-f83a-1f9f1d912522&t=51a4b246-0fa1-595b-3cc7-3e7aeb2b7380&l=1826
https://dev.azure.com/daniel0244/curl/_build/results?buildId=5044&view=logs&j=151da4b9-79a9-5fb7-f410-d59e17c3897b&t=ae9b0b05-05f4-558b-579c-a14022f0f07d&l=1655
Oldest CI run with this problem I could find:
https://dev.azure.com/daniel0244/curl/_build/results?buildId=5022&view=logs&j=151da4b9-79a9-5fb7-f410-d59e17c3897b&t=ae9b0b05-05f4-558b-579c-a14022f0f07d&l=1655
So it seems like it started between these commits:
7b2f067 (clean) and f073a42 (unclean)
The text was updated successfully, but these errors were encountered: