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

chore(ci) : update dependencies and define caches #385

Merged
merged 2 commits into from
Aug 22, 2021
Merged

chore(ci) : update dependencies and define caches #385

merged 2 commits into from
Aug 22, 2021

Conversation

mmorel-35
Copy link
Contributor

  • setup dependabot
  • update current dependencies
  • define caches for cabal, go , gradle, pip, spm

- setup dependencies
- define caches for cabal, go , gradle, pip, spm

Signed-off-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-Authored-By: Matthieu MOREL <mmorel-35@users.noreply.github.com>
@jonabc
Copy link
Contributor

jonabc commented Aug 20, 2021

👋 @mmorel-35 thanks for opening this. Adding dependabot is 👍 in general, though I'm curious if there is any context around this update since the PR body is pretty sparse.

Were you finding any issues with the tool as-built? Or is this preventative for future updates?

@mmorel-35
Copy link
Contributor Author

mmorel-35 commented Aug 20, 2021

Hi ! There was no issue. I like the tool. I just want to help the project to spare time in the developement. With the bot you just validate the triggered PR/ or fix it / or reject it and with the caches, you can do more builds in the same time .

Copy link
Contributor

@jonabc jonabc left a comment

Choose a reason for hiding this comment

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

thanks for making this change - I left a few requests to have greater specificity in the cache keys. This tool's entire purpose is to work across a range of versions on a range of package managers and languages, and I've been surprised in the past at things going wrong between different versions of the language or package manager being used.

I'm similarly wary of the use of the restore keys that can potentially cause dangerous cache sharing. I didn't add them in the past based on the same ☝️ concerns. It's probably fine to try out and if re-evaluate if anything comes up though 🤷

.github/workflows/test.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Show resolved Hide resolved
name: cache pip dependencies
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here - this might need to include ${{ matrix.python }} as part of the key and restore key

name: cache spm dependencies
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
Copy link
Contributor

Choose a reason for hiding this comment

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

and same here with ${{ matrix.swift }}

@mmorel-35
Copy link
Contributor Author

Hi! I will follow your préconisations.
By the way, I took examples from actions/cache. https://github.com/actions/cache/blob/main/examples.md
If they missed something then it might worth helping them complete it in the process.

Co-authored-by: Jon Ruskin <jonabc@github.com>
@jonabc
Copy link
Contributor

jonabc commented Aug 22, 2021

If they missed something then it might worth helping them complete it in the process.

actions/cache and actions workflows in general provide the configurability that licensed needs. TBH I don't have any specific requests from the actions/cache owners to make the usage better here. I'm guessing this tool falls into a smaller class of tools and applications that needs to test across a number of different versions of dependent tools and frameworks beyond what the tool itself is built on.

Is there anything specific you had in mind that was missing?

@mmorel-35
Copy link
Contributor Author

I was thinking of documentation completion. For example with the cabal cache, there is no hashed file in the documentation as it can be seen for many other languages and tools

@jonabc
Copy link
Contributor

jonabc commented Aug 22, 2021

Ah got it. Maybe that's something you'd like to open a PR on the actions/cache repo to update? In any event, this change is looking good, thanks for opening this up and keeping things running smoothly 🙇

Copy link
Contributor

@jonabc jonabc left a comment

Choose a reason for hiding this comment

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

:shipit: thanks!

@jonabc jonabc merged commit a0ae61e into licensee:master Aug 22, 2021
jonabc added a commit that referenced this pull request Sep 6, 2021
## 3.2.1

2021-09-06

### Changed

- Updated multiple dependency versions (:tada: @mmorel-35 #385, #389)
- Go homepage links use pkg.go.dev instead of godoc.org (:tada: @mmorel-35 73cfbbe)
- Local development ruby version changed to 2.7.4 (#393)

### Fixed

- Bundler source correctly finds platform specific dependencies (#392)
@jonabc jonabc mentioned this pull request Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants