Code Monkey home page Code Monkey logo

Comments (8)

inlined avatar inlined commented on August 16, 2024

This is strange... I've reproduced once after adding params, but it was stable after that. I can scan the code for anything suspicious but without a reliable repro I may have some difficulty

from firebase-tools.

iq-dot avatar iq-dot commented on August 16, 2024

What kind of params did you add? I've seen it rarely work on our CI but 9 out of 10 times it does a full update, I just can't figure out what the issue is. If I ssh into our CI box and deploy, the first deploy is full but the subsequent ones are fine but if I re-create another build using the same code, it does a full update.

Are you also using CircleCI to reproduce or a different method?

from firebase-tools.

inlined avatar inlined commented on August 16, 2024

I added string params, but it shouldn't make a difference since they're all strings in dotenv anyway. I'm trying to reproduce locally; Circle CI isn't officially in our scope, so I'm trying to reproduce it on my machine

from firebase-tools.

inlined avatar inlined commented on August 16, 2024

TIL that if you use --only with a function or codebase it disables noops. Does that apply to your case?

from firebase-tools.

iq-dot avatar iq-dot commented on August 16, 2024

from firebase-tools.

inlined avatar inlined commented on August 16, 2024

I just realized you might be expecting the feature to work differently than it does. Are you expecting that changes to folder1 won't deploy functions in folder2?

The hash check is against the entire source upload (plus dotenv and secret verions). Changes to either folder1 or folder2 will affect all functions in the codebase and change the hash. There's no way to know that your code in folder2 hasn't somehow reached in and modified the code in folder1 without building our own interpreter (e.g. what if folder2 had a utility function that folder1 depended on?). This is why we introduced codebases. If you're able to split your code into multiple codebases, you'll quickly benefit from noops. I fully recognize that this isn't always easily doable since we do not currently support monorepos for common utilities/types; that's a request that's been on our back-burner for a while. We've had some setbacks in implementing it but may be able to pick it up again in a few months.

from firebase-tools.

iq-dot avatar iq-dot commented on August 16, 2024

from firebase-tools.

inlined avatar inlined commented on August 16, 2024

That's correct. If your node module changes, all functions in that node module are updated because there's no way to rule out side effects. I'll add a warning to our documentation about this.

I'm closing the bug to remove it from our tracker, but I can check my GitHub inbox if you post extra comments.

from firebase-tools.

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.