Skip to content

vbump deps - #163

Closed
pawelru wants to merge 8 commits into
mainfrom
min_deps
Closed

pawelru wants to merge 8 commits into
mainfrom
min_deps

Conversation

@pawelru

@pawelru pawelru commented Jun 7, 2023

Copy link
Copy Markdown
Collaborator

WIP

Comment on lines +8 to +10
push:
branches:
- min_deps

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Need to revert it once completed

Suggested change
push:
branches:
- min_deps

@github-actions

github-actions Bot commented Jun 7, 2023 •

Copy link
Copy Markdown
Contributor

badge

Code Coverage Summary

Filename             Stmts    Miss  Cover    Missing
-----------------  -------  ------  -------  -----------------------------------------------------------------------------------------------------
R/format_value.R       188       7  96.28%   72, 156, 175, 246, 368, 379, 387
R/generics.R            84       4  95.24%   391, 403, 436, 465
R/labels.R              55       7  87.27%   53, 59, 68, 109, 137, 146, 150
R/matrix_form.R        414      26  93.72%   354-355, 450, 462-463, 482, 513, 602-603, 618-623, 650-651, 683-684, 716-717, 749, 835, 931, 933, 936
R/mpf_exporters.R      122      13  89.34%   2, 83-85, 93, 178, 218, 223, 406, 408, 413-414, 440
R/page_size.R           45       1  97.78%   169
R/pagination.R         471      18  96.18%   400, 472, 592-593, 598, 652-653, 671-679, 967, 1121-1122, 1134-1135, 1147-1148
R/tostring.R           345      11  96.81%   85, 355-356, 440, 455, 563, 616, 652, 696, 745, 752
R/utils.R                1       0  100.00%
TOTAL                 1725      87  94.96%

Diff against main

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

Results for commit: caeacb3

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@github-actions

github-actions Bot commented Jun 7, 2023 •

Copy link
Copy Markdown
Contributor

Unit Tests Summary

    1 files      4 suites   6s ⏱️
  16 tests   16 ✔️ 0 💤 0 ❌
176 runs  176 ✔️ 0 💤 0 ❌

Results for commit 65067e0.

♻️ This comment has been updated with latest results.

Signed-off-by: Pawel Rucki <[email protected]>
Signed-off-by: Pawel Rucki <[email protected]>

@gmbecker gmbecker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we have evidence that versions earlier than these cause problems? If not, this ends up inpractice imposing a pretty strict modernity requirement on rtables which is at odds with the way production systems tend to move and be updated slowly.

@gmbecker gmbecker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we have evidence that versions earlier than these cause problems? If not, this ends up inpractice imposing a pretty strict modernity requirement on rtables which is at odds with the way production systems tend to move and be updated slowly.

@pawelru

pawelru commented Jun 7, 2023

Copy link
Copy Markdown
Collaborator Author

Do we have evidence that versions earlier than these cause problems? If not, this ends up inpractice imposing a pretty strict modernity requirement on rtables which is at odds with the way production systems tend to move and be updated slowly.

I tend to test locally before pushing to save time and resources. This is a result for multiple iterations that I have made locally for the last couple of days. You can find an example report generated for main state of code here: https://github.com/insightsengineering/formatters/actions/workflows/integration-tests.yaml?query=branch%3Amain.

As an example - the last change that I have made was vbump r2rtf from 0.3.1 to 0.3.2 because of error in tests on the older version:

* checking tests ...
  Running ‘testthat.R’
 ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  Error: The argument type did not match: data.frame
  Backtrace:
      ▆
   1. └─formatters::export_as_rtf(dfmf, file = fil4) at test-exporters.R:80:8
   2.   └─base::lapply(...)
   3.     └─formatters (local) FUN(X[[i]], ...)
   4.       ├─r2rtf::rtf_encode(...)
   5.       │ └─class(tbl) %in% "list"
   6.       └─formatters::mpf_to_rtf(...)
   7.         └─r2rtf::rtf_colheader(...)
   8.           └─r2rtf:::check_args(tbl, type = c("data.frame"))
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 173 ]
  Error: Test failures
  Execution halted

Unfortunately I cannot retrieve more from my terminal history :(

which is at odds with the way production systems tend to move and be updated slowly

I think it's better to state that a package is not working correctly (or even does not work at all) with a given version of dependent pkg than not say anything about it. This gives an informative message to production system maintainers. What they will do with it is well beyond the scope of (any?) package.

@pawelru

pawelru commented Jun 13, 2023

Copy link
Copy Markdown
Collaborator Author

Right now tests are failing because it cannot install texlive system dependency. Haven't narrow down which package (and of which) version introduce this dependency. I'm talking with IDR now how to resolve it.

@averissimo averissimo mentioned this pull request Jul 18, 2023
4 of 11 tasks
@pawelru pawelru closed this Aug 18, 2023
@pawelru
pawelru deleted the min_deps branch August 18, 2023 09:22
averissimo added a commit that referenced this pull request Sep 13, 2023
WIP :: parent issue:
insightsengineering/nestdevs-tasks#7

Supersede:
* #163

### 🔴 Checklist for PR Reviewer

- [ ] Tag yourself next to this repo on
insightsengineering/nestdevs-tasks#7
- [ ] Package versions are the same or higher than `main`
- [ ] Package list is the same
  - Only exception is `rmarkdown` (may have been removed on `Suggests`)
- [ ] All packages in `Imports`, `Depends` & `Suggests` are in new
section `Config/Needs/verdepcheck`
- [ ] Added entry to `NEWS.md`
- [ ] Last `scheduled.yaml` action was run succesfully _(all 4
strategies)_
- important: it's not the last commit, it's the one that runs 4
`Scheduled 🕰️ / Dependency` actions
- [ ] `scheduled.yaml` SHOULD NOT have any push on any branches

### 🔴 What's needed before merging?

This PR depends on some upstream changes that need to be
finalized/merged before being ready to review.

#### Change in code

* `verdepcheck.yml` action (see comments)
  - [x] Remove `on: push` section 
  - [x] Change branch to main

#### PRS

- [x] verdepcheck
  * insightsengineering/verdepcheck#24
  * insightsengineering/verdepcheck#26
- [x] verdepcheck-action
  * insightsengineering/r-verdepcheck-action#16

### Changes description

* Adds minimum version for packages `DESCRIPTION`
* Adds `Config/Need/verdepcheck` section in `DESCRIPTION`
* Updates verdepcheck action
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