-
Notifications
You must be signed in to change notification settings - Fork 377
Warn in test runner if -v not supported #7490
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Could we add something to CI to ensure that this works / keeps working? |
I don't think this can be tested efficiently in CI:
I tested this locally with $ AGDA_BIN=$(cabal list-bin agda -O0) cabal run agda-tests -O0 -- -p Issue1809
Build profile: -w ghc-9.4.8 -O0
In order, the following will be built (use -v for more details):
- Agda-2.8.0 (test:agda-tests) (configuration changed)
Configuring Agda-2.8.0...
Preprocessing library for Agda-2.8.0..
Building library for Agda-2.8.0..
[ 1 of 435] Compiling Agda.Interaction.ExitCode [Flags changed]
[ 2 of 435] Compiling Agda.Termination.CutOff [Flags changed]
<snip>
[67 of 67] Compiling Main [Bugs.Tests changed]
[68 of 68] Linking /home/lawrence/oss/agda/tester-warn-unsupported-v/dist-newstyle/build/x86_64-linux/ghc-9.4.8/Agda-2.8.0/noopt/build/agda-tests/agda-tests [Objects changed]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ Detected an Agda built without the '-fdebug' cabal flag, @
@ tests that rely on debugging output will be skipped. @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
No JS node binary found, skipping JS tests.
all
Succeed
Issue1809: DISABLED (0.01s)
Ignored 1 disabled tests.
All 0 tests passed (0.01s)
$ AGDA_BIN=$(cabal list-bin agda -O0 -fdebug) cabal run agda-tests -O0 -fdebug -- -p Issue1809
Build profile: -w ghc-9.4.8 -O0
In order, the following will be built (use -v for more details):
- Agda-2.8.0 (test:agda-tests) (configuration changed)
Configuring Agda-2.8.0...
Preprocessing library for Agda-2.8.0..
Building library for Agda-2.8.0..
[ 1 of 435] Compiling Agda.Interaction.ExitCode [Flags changed]
[ 2 of 435] Compiling Agda.Termination.CutOff [Flags changed]
<snip>
[67 of 67] Compiling Main [Bugs.Tests changed]
[68 of 68] Linking /home/lawrence/oss/agda/tester-warn-unsupported-v/dist-newstyle/build/x86_64-linux/ghc-9.4.8/Agda-2.8.0/noopt/build/agda-tests/agda-tests [Objects changed]
No JS node binary found, skipping JS tests.
all
Succeed
Issue1809: OK (0.14s)
All 1 tests passed (0.14s)
|
It seems like
So maybe our special logic for |
Indeed. I currently use: AGDA_BIN=$(cabal list-bin agda -O0 -fdebug) cabal run agda-tests -O0 -fdebug Where setting
I'd prefer these inputs to be decoupled, but that can be implemented in a separate PR. |
Ok, I am merging this as-is now since I am not in the mood now to add a CI for this. Thanks for the contribution! |
[ disable "interaction/Debug" | ||
, disable "interaction/Issue1353" | ||
, disable "interaction/Positivity" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a mixup between Interactive
(tests the decommissioned Agda repl) and interaction
(tests the Agda interaction facilities).
The interaction
tests are still run by a Makefile
only, do not have a implementation as tasty-silver
testsuite.
So I suppose this code is not doing anything here.
I'll proceed to remove it.
It would have to be ported to the Makefile
, but as I understood, we are anyway not testing this PR in CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in #7604.
This code has no function, it was intended for the `interaction` testsuite but this is not covered by our tasty-silver suite yet.
This code has no function, it was intended for the `interaction` testsuite but this is not covered by our tasty-silver suite yet.
This code has no function, it was intended for the `interaction` testsuite but this is not covered by our tasty-silver suite yet.
This PR makes the tester check that Agda was built with
-fdebug
,before running tests that depend on Agda supporting
-v
for debug output.The motivation is to make the test suite more developer-friendly:
I often forget to build Agda with
-fdebug
, and then am surprised when (seemingly arbitrary) tests fail on my machine (but not CI).Related tickets:
node
binary-v
and testing-v
is passed but not supportedcabal build
,nix build