-
-
Notifications
You must be signed in to change notification settings - Fork 66
Enable optional custom tarball URL in unit tests (and remove separate custom tarball yaml file) #1132
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1132 +/- ##
=======================================
Coverage 87.28% 87.28%
=======================================
Files 14 14
Lines 5955 5955
=======================================
Hits 5198 5198
Misses 757 757 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@WardBrian I tried what you suggested in #1130. Separately from the unit tests for this PR (which are using the latest official release), I triggered it manually to run with the release candidate using this url: https://github.com/stan-dev/cmdstan/releases/download/v2.38.0-rc1/cmdstan-2.38.0-rc1.tar.gz It worked on Mac and Linux and all the tests passed but is failing to install CmdStan on Windows: https://github.com/stan-dev/cmdstanr/actions/runs/20763698089/job/59624808048#step:11:41 Any idea what's going on? Am I making a naive Windows mistake somewhere? |
|
@jgabry looks like the tarballs accidentally ended up with a |
|
Ah, that did not occur to me, thanks. I can rerun this whenever there’s a new one available. Aside from that issue this seems to be working, so we should be able to get rid of that outdated custom tarball workflow file going forward, thanks for the suggestion. |
|
Just saw you reran it, thanks |
|
Thanks for looking into this! Any idea what the macos-devel failures would be about? Worth looking into? |
|
Both of the Mac jobs failed this time but they both passed yesterday. My guess is that we can safely ignore this. We've been getting some transient issues on Mac on GHA that we don't get locally or with Windows or Linux. Often rerunning fixes it (rerunning now). I've been meaning to make some time to look into why we get the sporadic failures on GHA. |
|
Hmm, looks like a TBB error? https://github.com/stan-dev/cmdstanr/actions/runs/20763698089/job/59709757601#step:13:906 Any ideas why that would happen sporadically? |
|
Am I correct that it's trying to install 2.35 in that test?
I think there were some issues with TBB and newer clangs that we patched more recently. Maybe the macos runners updated recently? |
|
Yeah that specific test is testing that it can install an older version from the release URL or version number since we still allow users to do that. Do you think 2.36 is recent enough? I can bump the version number in that test. |
|
I’m not entirely sure when the issue cropped up, unfortunately. Worth a shot? Is there any chance to just disable that test when using a custom tarball? It wouldn’t be relevant it seems |
* Bump version number when testing install of older CmdStan * Disable test installing older CmdStan versions when using a custom tarball url
|
Yeah it's irrelevant when using the custom tarball. I just disabled it. I'll cancel and rerun the tests with the custom tarball. We also get sporadic errors when not using a custom tarball, so I'd like to see if we can get rid of those too, so I also bumped to 2.36 in that test which will hopefully help when there's no custom tarball. |
|
Thanks Jonah! |
and yes, I think that workflow file can be retired as part of this |
This functionality is now available in the regular unit tests
|
Ok great, I just deleted that file as part of this PR. And unit tests with the custom tarball are in progress. |
|
Ok so now one of the Mac jobs is passing but one is still failing. Looks like a similar or the same TBB error but from a different test that wasn't skipped. But that test that's failing now is testing that cmdstanr/tests/testthat/test-install.R Lines 188 to 194 in fc0d2cf
The test is expecting to see "CmdStan v2.38.0 built" but instead it sees: https://github.com/stan-dev/cmdstanr/actions/runs/20791084253/job/59713158154#step:13:1394 I'm not sure, but I doubt this is actually a problem with the RC. All the tests on this PR are passing with the latest release, so I guess it could be the RC but it's probably just a similar sporadic failure that we see sometimes. That said, any idea what would cause this TBB error? |
|
It's complaining about the file Modern builds of TBB seem to have removed this entirely, so there's no easy comparison unfortunately. My first guess, if this is the kind of thing you've seen before, is that there is a parallelism bug in TBB's makefiles where something is trying to read that file before it is done being written. If you set the |
I'll try that now and rerun everything. Thanks! |
|
If it happens again, if you rig something up to print the contents of that file ( |
|
Yeah I can do that if it keeps failing |
closes #1130
Submission Checklist
Summary
Enables an optional custom tarball URL in our main unit tests workflow so that we don't need to maintain two separate workflow files. Previously we had
cmdstan-tarball-check.yaml(now deleted) for checking release candidates. Now the URL for the RC tarball can be provided to our main R-cmd-check workflow.Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Columbia University
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: