https://pantsbuild.org/ logo
a

ancient-vegetable-10556

10/26/2021, 8:10 PM
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

hundreds-father-404

10/26/2021, 8:14 PM
I'd probably
print(result)
to see if stdout has anything
a

ancient-vegetable-10556

10/26/2021, 8:15 PM
let’s see how that goes
w

witty-crayon-22786

10/26/2021, 8:16 PM
@ancient-vegetable-10556: CI also rebases to latest
main
before running
so would confirm that you don’t repro when rebased to main
a

ancient-vegetable-10556

10/26/2021, 8:16 PM
@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

fast-nail-55400

10/26/2021, 8:26 PM
there’s also that
@logging
decorator for the test
w

witty-crayon-22786

10/26/2021, 8:26 PM
+1
a

ancient-vegetable-10556

10/26/2021, 9:01 PM
Hrrrm. Once I added the
@logging
decorator, the test failure went away. Caching weirdness?
w

witty-crayon-22786

10/26/2021, 9:02 PM
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

ancient-vegetable-10556

10/26/2021, 9:03 PM
I added a
print
statement, which didn’t change the results, but then added
@logging
which changed the results
w

witty-crayon-22786

10/26/2021, 9:04 PM
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

ancient-vegetable-10556

10/26/2021, 9:05 PM
Ah right, yes, it renders to the console, and the test had been working just fine on other machines.
w

witty-crayon-22786

10/26/2021, 9:05 PM
…oh. but
logging
might affect how the
Console
is mocked…?
i’m fine chasing that down once we have fried other fish.
a

ancient-vegetable-10556

10/26/2021, 9:07 PM
Now that the tests are passing, yes.
And now I need to order fish and chips for dinner.