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

ci: switch to GitHub Actions #37

Merged
merged 7 commits into from
Aug 8, 2024
Merged

ci: switch to GitHub Actions #37

merged 7 commits into from
Aug 8, 2024

Conversation

barrettk
Copy link
Collaborator

@barrettk barrettk commented Aug 7, 2024

No description provided.

@barrettk barrettk requested a review from kyleam August 7, 2024 17:47
@kyleam
Copy link
Collaborator

kyleam commented Aug 7, 2024

I'm going to remove the review request until you sort out the CI failures, but please let me know if you need any help troubleshooting.

@kyleam kyleam removed their request for review August 7, 2024 17:52
@barrettk barrettk requested a review from kyleam August 7, 2024 18:16
Copy link
Collaborator

@kyleam kyleam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snapshot tests for this branch pass for me on latest Metworx, but fail with main (f518cdb), so I think changes in b20ce83 are good.

$ Rscript -e 'devtools::test()'
ℹ Testing pmforest
✔ | F W  S  OK | Context
✔ |         27 | base-plot [11.0s]
✔ |          3 | input-data
✔ |          2 | nsim-plot [1.7s]
✔ |          5 | summary

══ Results ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 13.4 s

[ FAIL 0 | WARN 0 | SKIP 0 | PASS 37 ]

$ git rev-parse HEAD
b20ce83cc8b67b491a6ac6dc096253074bd567b4

.github/workflows/coverage.yml Outdated Show resolved Hide resolved
@@ -1,4 +1,4 @@
#' Skip test if not on Metworx or Drone
#' Skip test if not on Metworx or CI
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this description seems incorrect to me. This helper skips if PMF_SKIP_VDIFFR is set to true, but the description is "Skip test if not on Metworx or CI". That's misleading because that environment variable isn't inherently tied to either Metworx or the CI. And that's demonstrated by the fact that, before this PR, that variable was set in DRONE and this skip was triggered, while the variable is not set in these GitHub Actions and the skip is not triggered.

How about changing this to "Skip test if `PMF_SKIP_VDIFFR` is set to true"?

Also, given the description of skip_vdiffr says "[t]his is useful because vdiffr::expect_doppleganger() is very fragile and tends to fail with false positives in other environments (like CI and R CMD CHECK)", should GitHub Actions set this? Or, given the actions are passing without the skip, should we wait and see how fragile these end up being?

Side remark: the commit title (37eb86b) for this change is "tests helpers: prefer CI env var to drone", but this doesn't look at the CI environment variable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know I will say I expected the oldest ci action to fail without this variable set. vdiffr differences can cause mismatches in svgs, so I find it odd that oldest passed in both b57855d and b20ce83.

I'll adjust the documentation, but am leaning towards:

given the actions are passing without the skip, should we wait and see how fragile these end up being?

 - This environment variable is no longer set in CI. Based on previous findings, this was necessary to avoid differences in SVG/snapshot expectation when installing various versions of `vdiffr` in CI.

 - This doesnt seem to be necessary now. The reasoning is unclear, but opting to _not_ set the environment variable in `.github/workflows/main.yaml` unless necessary.
@barrettk barrettk requested a review from kyleam August 8, 2024 15:45
Copy link
Collaborator

@kyleam kyleam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@barrettk barrettk merged commit 71e8e91 into main Aug 8, 2024
5 checks passed
@barrettk barrettk deleted the migrate-ci branch August 8, 2024 19:13
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

Successfully merging this pull request may close these issues.

2 participants