functions-differ icon indicating copy to clipboard operation
functions-differ copied to clipboard

Use functions-differ from gitlab ci/cd

Open floriandu78 opened this issue 3 years ago • 3 comments

Hi,

I've trying to make functions-differ works on my gitlab ci and it feels that it is not working. When i run functions-differ it seems that it is running forever.

Here is the ci I implemented from .gitlab-ci.yml file.

test-differ:
  stage: test-differ
  image: node:12.20.1
  script:
    - npm install -g functions-differ --unsafe-perm=true
    - functions-differ

Has anyone experienced something similar in the past?

Kind regard, Florian.

floriandu78 avatar Nov 19 '21 03:11 floriandu78

I am experiencing this—bundling/diffing ~75 functions locally takes less than thirty seconds while in Github Actions it takes upwards of 20min and does not finish. Did you find any cause or workarounds?

chrisstephenmiller avatar Apr 06 '22 16:04 chrisstephenmiller

https://github.com/haroldadmin/functions-differ/pull/10 - the --concurrency flag added here solved my issue.

chrisstephenmiller avatar Apr 06 '22 16:04 chrisstephenmiller

Hey Chris, Thanks for reaching out to me. I ended up building a solution with git hooks that run the script locally on my developer's machines, then commit the differspec file to their branch. Then on my gitlab CI runners, I had to implement a solution that split the functions changed into chunks and then deploy chunks individually one by one. This is required because firebase has a quota of 50 functions that can be deployed at once. If you want to know more about that process I'm happy to chat anytime. That being said, I'm pretty happy about that solution you're bringing because my git hooks sometimes fail. Thanks a lot for reaching out mate. Regards, Florian.

Le jeu. 7 avr. 2022 à 02:45, Chris Miller @.***> a écrit :

#10 https://github.com/haroldadmin/functions-differ/pull/10 - the --concurrency flag added here solved my issue.

— Reply to this email directly, view it on GitHub https://github.com/haroldadmin/functions-differ/issues/6#issuecomment-1090481977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSHGOINFODKEIAYJV2SRHDVDW5RDANCNFSM5ILFPMKQ . You are receiving this because you authored the thread.Message ID: @.***>

floriandu78 avatar Apr 06 '22 21:04 floriandu78