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

'reading and writing models works' test fails #40

Closed
kdorheim opened this issue Apr 29, 2020 · 6 comments
Closed

'reading and writing models works' test fails #40

kdorheim opened this issue Apr 29, 2020 · 6 comments

Comments

@kdorheim
Copy link
Contributor

the 'reading and writing models works' test_writedata.R fails it contains the following comments

## These tests are kind of long, since the fldgen objects are rather large.
## Therefore, skip them on the CI environments, which are somewhat
## time-sensitive.  And since we're skipping them on the CI, I also haven't
## included the data file in the repository (it is quite large for the time
## being).  We can revisit this once we find a way to shrink the memory
## footprint of the fldgen objects.
@kdorheim
Copy link
Contributor Author

kdorheim commented Apr 29, 2020

Right now it does not look like we have access to the data needed for this test. It looks like it was something that might have been developed to run on a local test and it is unclear if there is a record about how the test data was generated. @crvernon, @FeralFlows, and @abigailsnyder do you think I could comment out this test for now to get the github actions up and running?

@abigailsnyder
Copy link
Contributor

error details (from Kalyn's machine and githubs test on a windows machine):

> test_check("fldgen")

  -- 1. Error: reading and writing models works (@test_writedata.R#59)  ----------

  cannot open the connection

  Backtrace:

    1. testthat::expect_silent(testmodel1 <- loadmodel(oldfile, oldfmt = TRUE))

    9. fldgen::loadmodel(oldfile, oldfmt = TRUE)

   10. base::load(file)

   11. base::readChar(con, 5L, useBytes = TRUE)

  

  == testthat results  ===========================================================

  [ OK: 233 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]

  1. Error: reading and writing models works (@test_writedata.R#59) 

Depending on what we figure out is causing the test failure, it's possible this may be related to missing data / weird vertical striping in results that @crvernon @FeralFlows are seeing. It may also be completely unrelated and just a test quirk due to updated packages at some point or something.

@abigailsnyder
Copy link
Contributor

abigailsnyder commented Apr 29, 2020

Right now it does not look like we have access to the data needed for this test. It looks like it was something that might have been developed to run on a local test and it is unclear if there is a record about how the test data was generated. @crvernon, @FeralFlows, and @abigailsnyder do you think I could comment out this test for now to get the github actions up and running?

@kdorheim I think commenting it out so that we can see if there are any other errors to deal with on the github actions make sense, and then we can circle back to figuring this one out. I do think it's important that we figure it out (I know you do too), but whether we figure it out and then deal with github actions or deal with github actions and then figure it out...I don't think it matters too much

@crvernon
Copy link
Member

Agree with @abigailsnyder

@abigailsnyder
Copy link
Contributor

@kdorheim I wonder if this error has anything with changes made in this commit
ab31dcf

might be worth checking when we do circle back to digging into the write test

@abigailsnyder
Copy link
Contributor

Follow up notes:
The offending test is one making sure that results previously saved as .rda agree with results saved as .rds.

It's failing because the old .rda data is not being carried anymore. We also never actually use the loadmodel or savemodel functions this test is for, so I'm stripping those functions and this test out of the code in an upcoming PR.

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

3 participants