Coder Social home page Coder Social logo

Comments (14)

Robinlovelace avatar Robinlovelace commented on June 3, 2024

Seems it's been archived: https://cran.r-project.org/web/packages/mlr3spatiotempcv/index.html

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

But yeah I see it's in the remotes: https://github.com/geocompr/geocompkg/blob/d75e4a586eeac6cd368045b7d2fee822c4a2920b/DESCRIPTION#L113

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

So no idea what's going on here...

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

FYI I have noticed issues with actions recently some of them quite confusing: it seems that packages in Remotes are not always installed.

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

Removing me from the Assignees. I would happily be assigned if I had agreed to work on it and if I knew how. Do you have any ideas @Nowosad? May just be a self fixing issue related to upstream changes, e.g. in r-lib/actions and associated packages.

from solutions.

Nowosad avatar Nowosad commented on June 3, 2024

There is a part of the docker image creation code -- https://github.com/geocompr/docker/blob/c122a67d8599c9a0f45cd71e9ae47205f61bcce4/suggests/Dockerfile#L2.

When I run it locally, it installs {mlr3spatiotempcv}. Maybe it is just an issue with the image build on GHA -- https://github.com/geocompr/docker/actions/runs/3383962763/jobs/5620374176?

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

Could be an issue with the GHA build, I think that's likely.

from solutions.

Nowosad avatar Nowosad commented on June 3, 2024

Ok, I think I understand the main issue (but do not know how to fix it yet):

  1. We install the dependencies inside using dockerfile (https://github.com/geocompr/docker/blob/c122a67d8599c9a0f45cd71e9ae47205f61bcce4/suggests/Dockerfile#L2)
  2. It is done inside of the docker/build-push-action (https://github.com/geocompr/docker/blob/72aa97e472f3c67123bc6c773eab980e0b4f5fbb/.github/workflows/suggests.yml#L55)
  3. The problem is that installing several GitHub R packages we are exceeding the API rate limit (https://github.com/geocompr/docker/actions/runs/3342699887/jobs/5535187449#step:8:875)
  4. The fix should be related to increasing our GitHub API rate limit with a GitHub Personal Access Token; however, this token must be provided directly to the docker/build-push-action inside our GitHub Action (and not in our GitHub Action itself).

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

That is a great diagnosis of the issue. Environments is my first thought... Or could we get the packages from another source, e.g. R Universe?

from solutions.

Nowosad avatar Nowosad commented on June 3, 2024

I am currently trying the approach described in https://github.com/docker/build-push-action/blob/master/docs/advanced/secrets.md -- by sending GITHUB_PAT from GitHub Actions to docker/build-push-action to our dockerfile.

from solutions.

Nowosad avatar Nowosad commented on June 3, 2024

It took me half a day, but it works now -- https://github.com/geocompr/docker/actions/runs/3385623405.

Solution:

  1. Add a secret at the bottom of the GHA file -- https://github.com/geocompr/docker/blob/master/.github/workflows/suggests.yml
  2. Copy the secret into the .Renviron file in Dockerfile (see lines 2 and 3 at https://github.com/geocompr/docker/blob/master/suggests/Dockerfile)

Now, I can pretend to be a hacker for the rest of the day;)

from solutions.

Robinlovelace avatar Robinlovelace commented on June 3, 2024

🎉

from solutions.

jannes-m avatar jannes-m commented on June 3, 2024

I am impressed, this is a great hacky-geeky solution 👍

from solutions.

Nowosad avatar Nowosad commented on June 3, 2024

Thank you, @jannes-m

from solutions.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.