insightsengineering / osprey

Community effort to collect TLG code and create a catalogue
https://insightsengineering.github.io/osprey/
Other
4 stars 1 forks source link

update workflows #137

Closed pawelru closed 6 months ago

pawelru commented 7 months ago

I'm going to trigger verdepcheck pipelines manually. You can check it's status here: https://github.com/insightsengineering/osprey/actions/workflows/scheduled.yaml?query=branch%3Afix_verdepcheck

github-actions[bot] commented 7 months ago

badge

Code Coverage Summary

Filename                   Stmts    Miss  Cover    Missing
-----------------------  -------  ------  -------  ---------
R/g_ae_sub.R                 344     344  0.00%    147-536
R/g_butterfly.R              183     183  0.00%    102-319
R/g_events_term_id.R         263     263  0.00%    129-490
R/g_heat_bygrade.R           210     210  0.00%    139-371
R/g_hy_law.R                  77      77  0.00%    119-199
R/g_patient_profile.R        390     390  0.00%    295-959
R/g_spiderplot_simple.R       20      20  0.00%    37-59
R/g_spiderplot.R             174     174  0.00%    109-345
R/g_swimlane.R               139     139  0.00%    119-320
R/g_waterfall.R              306     306  0.00%    146-506
R/stream_filter.R            126     126  0.00%    34-296
R/utils.R                    153     153  0.00%    43-362
TOTAL                       2385    2385  0.00%

Diff against main

Filename      Stmts    Miss  Cover
----------  -------  ------  --------
TOTAL             0       0  +100.00%

Results for commit: 0da45f94b751a27ae20fd0b363b859f0c2aa3331

Minimum allowed coverage is 80%

:recycle: This comment has been updated with latest results

averissimo commented 6 months ago

Updated versions and section on DESCRIPTION.

Workflow is running, I'll be fixing it until badge is green or all fails are "expected"

Scheduled 🕰️

(this badge is for the fix_verdepcheck branch)

averissimo commented 6 months ago

This line with guide-box-bottom added by #131 requires latest ggplot2 (3.5.0)

https://github.com/insightsengineering/osprey/blob/324fb2f5b1f245eace304d8974234574ee55888b/R/g_events_term_id.R#L314

averissimo commented 6 months ago

@pawelru I'm wondering if there is any reason why ggplot2@3.5.0 may not be used here?

Such as: ggplot2 not being available in a production/testing environment?

pawelru commented 6 months ago

@pawelru I'm wondering if there is any reason why ggplot2@3.5.0 may not be used here?

Such as: ggplot2 not being available in a production/testing environment?

I am probably missing some context here. What are you referring to?

averissimo commented 6 months ago

Sorry, for the lack of context.

The minimum strategies were failing as they need gggplot2@3.5.0 since #131

My concrete question:

pawelru commented 6 months ago

Ahh it's a pitty I haven't added this to my PR. Sorry about that.

If I recall correctly, ggplot2 throws a bunch of lifecycle warnings that some functions have been softly deprecated and there are fully functional alternatives. Looking then into the PR it seems that it's about aes_string() and size argument of geom_segment(). An evidence in the bottom of my message. These were also present in our CI that automatically build testing environment with the newest version of CRAN packages.


r$> aes_string()
Aesthetic mapping: 
<empty>
Warning message:
`aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`.
ℹ See also `vignette("ggplot2-in-packages")` for more information.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
r$> geom_segment(size = 0.5)
geom_segment: arrow = NULL, arrow.fill = NULL, lineend = butt, linejoin = round, na.rm = FALSE
stat_identity: na.rm = FALSE
position_identity 
Warning message:
Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
pawelru commented 6 months ago

It looks like all the verdepcheck pipelines are green - last run. You have correctly bumped up ggplot dependency. This is not a problem anymore. Am I right on this?

averissimo commented 6 months ago

Yup! this one is ready to be merged as soon as CI workflow starts to works as expected