I’ve got a <CI test failure here> that I can’t rep...
# development
a
I’ve got a CI test failure here that I can’t reproduce on Mac OS (Py3.9) or Linux (Py3.7). Any idea how we normally go about debugging something like this?
h
I'd probably
print(result)
to see if stdout has anything
a
let’s see how that goes
w
@ancient-vegetable-10556: CI also rebases to latest
main
before running
so would confirm that you don’t repro when rebased to main
a
@witty-crayon-22786 I verified that I was based against most recent main before running
👍 1
Stdout was empty:
GoalRuleResult(exit_code=0, stdout=‘’, stderr=‘’)
f
there’s also that
@logging
decorator for the test
w
+1
a
Hrrrm. Once I added the
@logging
decorator, the test failure went away. Caching weirdness?
w
maybe, but shouldn’t be. the decorator only enables logging, and shouldn’t affect cache keys.
…oh. um. you’re actually rendering to the console, right? not the log?
…you’d have to be to see it in
stdout
i suppose.
a
I added a
print
statement, which didn’t change the results, but then added
@logging
which changed the results
w
i meant to ask whether the
coursier-resolve
goal is rendering to the console, rather than the test itself
and yea, it looks like it is.
a
Ah right, yes, it renders to the console, and the test had been working just fine on other machines.
w
…oh. but
logging
might affect how the
Console
is mocked…?
i’m fine chasing that down once we have fried other fish.
a
Now that the tests are passing, yes.
And now I need to order fish and chips for dinner.