Skip to content
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 failures in yesod-test 1.6.19 #1848

Open
felixonmars opened this issue Oct 20, 2024 · 3 comments
Open

Test failures in yesod-test 1.6.19 #1848

felixonmars opened this issue Oct 20, 2024 · 3 comments

Comments

@felixonmars
Copy link
Contributor

I'm trying to package yesod-test 1.6.19 for Arch, and got the following test failures:

DEBUG:root:haskell-yesod-test: Configuring yesod-test-1.6.19...                                                                                                                                                                                                                            
DEBUG:root:haskell-yesod-test: Preprocessing library for yesod-test-1.6.19..                                                                                                                                                                                                               
DEBUG:root:haskell-yesod-test: Building library for yesod-test-1.6.19..                                                                                                                                                                                                                    
DEBUG:root:haskell-yesod-test: [1 of 5] Compiling Yesod.Test.CssQuery ( Yesod/Test/CssQuery.hs, dist/build/Yesod/Test/CssQuery.dyn_o )                                                                                                                                                     
DEBUG:root:haskell-yesod-test: [2 of 5] Compiling Yesod.Test.Internal ( Yesod/Test/Internal.hs, dist/build/Yesod/Test/Internal.dyn_o )                                                                                                                                                     
DEBUG:root:haskell-yesod-test:                                                                                                                                                                                                                                                             
DEBUG:root:haskell-yesod-test: Yesod/Test/Internal.hs:21:1: warning: [-Wunused-imports]                                                                                                                                                                                                    
DEBUG:root:haskell-yesod-test:     The import of ‘Data.Semigroup’ is redundant                                                                                                                                                                                                             
DEBUG:root:haskell-yesod-test:       except perhaps to import instances from ‘Data.Semigroup’                                                                                                                                                                                              
DEBUG:root:haskell-yesod-test:     To import instances alone, use: import Data.Semigroup()                                                                                                                                                                                                 
DEBUG:root:haskell-yesod-test:    |                                                                                                                                                                                                                                                        
DEBUG:root:haskell-yesod-test: 21 | import Data.Semigroup (Semigroup(..))                                                                                                                                                                                                                  
DEBUG:root:haskell-yesod-test:    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                  
DEBUG:root:haskell-yesod-test: [3 of 5] Compiling Yesod.Test.Internal.SIO ( Yesod/Test/Internal/SIO.hs, dist/build/Yesod/Test/Internal/SIO.dyn_o )                                                                                                                                         
DEBUG:root:haskell-yesod-test: [4 of 5] Compiling Yesod.Test.TransversingCSS ( Yesod/Test/TransversingCSS.hs, dist/build/Yesod/Test/TransversingCSS.dyn_o )                                                                                                                                
DEBUG:root:haskell-yesod-test: [5 of 5] Compiling Yesod.Test       ( Yesod/Test.hs, dist/build/Yesod/Test.dyn_o )                                                                                                                                                                          
DEBUG:root:haskell-yesod-test: Preprocessing test suite 'test' for yesod-test-1.6.19..                                                                                                                                                                                                     
DEBUG:root:haskell-yesod-test: Building test suite 'test' for yesod-test-1.6.19..                                                                                                                                                                                                          
DEBUG:root:haskell-yesod-test: [1 of 1] Compiling Main             ( test/main.hs, dist/build/test/test-tmp/Main.dyn_o )                                                                                                                                                                   
DEBUG:root:haskell-yesod-test:                                                                                                                                                                                                                                                             
DEBUG:root:haskell-yesod-test: test/main.hs:686:49: error:                                                                                                                                                                                                                                 
DEBUG:root:haskell-yesod-test:     • Variable not in scope:                                                                                                                                                                                                                                
DEBUG:root:haskell-yesod-test:         radioField'                                                                                                                                                                                                                                         
DEBUG:root:haskell-yesod-test:           :: m1 (OptionList a1) -> Field (HandlerFor LiteApp) Color                                                                                                                                                                                         
DEBUG:root:haskell-yesod-test:     • Perhaps you meant ‘radioField’ (imported from Yesod.Form)                                                                                                                                                                                             
DEBUG:root:haskell-yesod-test:     |                                                                                                                                                                                                                                                       
DEBUG:root:haskell-yesod-test: 686 |                     $ RadioButtonForm <$> aopt (radioField' optionsEnum) "Color" Nothing                                                                                                                                                              
DEBUG:root:haskell-yesod-test:     |                                                 ^^^^^^^^^^^                                                                                                                                                                                           
DEBUG:root:haskell-yesod-test:                                                                                                                                                                                                                                                             
DEBUG:root:haskell-yesod-test: test/main.hs:699:48: error:                                                                                                                                                                                                                                 
DEBUG:root:haskell-yesod-test:     • Variable not in scope:                                                                                                                                                                                                                                
DEBUG:root:haskell-yesod-test:         checkboxesField'                                                                                                                                                                                                                                    
DEBUG:root:haskell-yesod-test:           :: m0 (OptionList a0) -> Field (HandlerFor LiteApp) [Color]                                                                                                                                                                                       
DEBUG:root:haskell-yesod-test:     • Perhaps you meant one of these:                                                                                                                                                                                                                       
DEBUG:root:haskell-yesod-test:         ‘checkboxesField’ (imported from Yesod.Form),                                                                                                                                                                                                       
DEBUG:root:haskell-yesod-test:         ‘checkBoxField’ (imported from Yesod.Form),                                                                                                                                                                                                         
DEBUG:root:haskell-yesod-test:         ‘checkboxesFieldList’ (imported from Yesod.Form)                                                                                                                                                                                                    
DEBUG:root:haskell-yesod-test:     |                                                                                                                                                                                                                                                       
DEBUG:root:haskell-yesod-test: 699 |                     $ CheckboxesForm <$> areq (checkboxesField' optionsEnum) "Checkboxes" (Just [Blue, Black])                                                                                                                                        
DEBUG:root:haskell-yesod-test:     |                                                ^^^^^^^^^^^^^^^^
@felixonmars
Copy link
Contributor Author

Perhaps it requires a new yesod-form release and the test suite should require on tighter bounds?

@juhp
Copy link

juhp commented Oct 21, 2024

Stackage Nightly also hit this

@juhp
Copy link

juhp commented Oct 21, 2024

For now I am conservatively putting an upperbound on yesod-test in Nightly - not sure if just disabling the testsuite is more reasonable/okay?

Please open a PR to lift the upperbound when this is fixed or possibly allowing the testsuite to fail.

juhp added a commit to commercialhaskell/stackage that referenced this issue Oct 21, 2024
juhp added a commit to commercialhaskell/lts-haskell that referenced this issue Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants