Git Product home page Git Product logo

Comments (8)

safetypins avatar safetypins commented on July 17, 2024

I admit that I do not understand very much about how CircleCI works, but it looks to me like the install script is not creating a functioning block of commands. package.json is not listed in the restore_cache > keys section, and the package.json key is restored before it is saved.

from drupal9ci.

deviantintegral avatar deviantintegral commented on July 17, 2024

I'm not sure what's up with the errors themselves, but note that the filenames like package.json are being used as cache keys not cached files. This saves significant time by telling Circle that if package.json has been seen before, it can use the node_modules directory from a previous build.

I do wonder if these should both be lockfiles and not the package files. @juampynr ?

from drupal9ci.

juampynr avatar juampynr commented on July 17, 2024

Correct @deviantintegral. Looking at https://github.com/Lullabot/drupal8ci/blob/master/dist/circleci/.circleci/config.yml, the installer uses composer.lock to create cache keys. I see a mix of package and composer keys used above.

@safetypins how about if you start by removing cache management altogether? You can add it later once you get the workflow building correctly.

from drupal9ci.

fjgarlin avatar fjgarlin commented on July 17, 2024

This was removed as part of #65

from drupal9ci.

davereid-pfg avatar davereid-pfg commented on July 17, 2024

I'm curious why the caching was removed?

from drupal9ci.

fjgarlin avatar fjgarlin commented on July 17, 2024

No big reason really. As there was some refactoring needed to have it all working again, the caching was removed as part of it, trying to get the minimum code to work again, but we could defo try to add it back again.

It was also done as a way of standardization between the different platforms covered (Travis, Circle, Gitab, Github, Bitbucket), trying to make all those files "as similar as possible", but I guess once you pick a platform you can go ahead and optimize it as needed.

from drupal9ci.

fjgarlin avatar fjgarlin commented on July 17, 2024

@davereid-pfg @juampynr - as a follow-up from the caching. I tried to restore it here: fjgarlin/my-drupal9-site@0385f85, where it generated a cache version of the vendor folder (build 7), however, when triggering another commit (ie: fjgarlin/my-drupal9-site@8d0e078) we can see that the jobs that were previously working no longer work due to the files not being found, despite the fact that the restoring of the cache was successful in the previous step as seen here:
Screenshot 2021-10-14 at 21 45 51
(CI task url: https://app.circleci.com/pipelines/github/fjgarlin/my-drupal9-site/3/workflows/362e6aee-fc19-4e5a-afac-294009d04fd8/jobs/13)

That the issue I found back in the day and why I removed it as part of the D9 refactoring.

from drupal9ci.

fjgarlin avatar fjgarlin commented on July 17, 2024

More paths needed to be included when saving the cache. We can see the caching working here: https://app.circleci.com/pipelines/github/fjgarlin/my-drupal9-site/5/workflows/123b6d07-6eda-4f5c-8654-cca25ad927de/jobs/22
Screenshot 2021-10-15 at 08 53 37

The PR above should bring back caching.

from drupal9ci.

Related Issues (20)

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.