FirebaseExtended / action-hosting-deploy

Automatically deploy shareable previews for your Firebase Hosting sites
https://firebase.google.com/docs/hosting/github-integration
Apache License 2.0
704 stars 202 forks source link

[BUG] Github Action Logs Look Corrupted #188

Closed Aedalus closed 2 years ago

Aedalus commented 2 years ago

Action config

Created a brand new Github workflow via the firebase CLI. No modifications were made to the workflow, and the firebase project has worked fine before setting up CI/CD.

    steps:
      - uses: actions/checkout@v2
      - run: npm ci && npm run build
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MY_PROJECT}}'
          channelId: live
          projectId: <my-project>

Error message

During the deploy step, logs look like some form of encoding/coloring got messed up. Logs also increased to over 750MB total, slowing the github UI to a crawl. This recent issue seems to point towards recent issues with a 'Faker' package being the cause, but it's not clear to me if that is the case. Would prefer if we could leave a bug report open to help track the issue, and allow others to find some information if seeing similar problems.

image

sagearora commented 2 years ago

Same issue on my deploys starting today!

khromov commented 2 years ago

Same issue here on existing app that has been deploying without problems for several weeks.

regulait-dev commented 2 years ago

Same problem starting today

Andrew-Hopkins-Liqua commented 2 years ago

I am having the same issue. This is a game-breaking bug.

I believe this issue is related to the Marak Zalgo Liberty 2 bug. https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/ https://github.com/Marak/colors.js/issues/285

elsowiny commented 2 years ago

I am having the same issue. This is a game-breaking bug.

I believe this issue is related to the Marak Zalgo Liberty 2 bug. https://snyk.io/blog/open-source-maintainer-pulls-the-plug-on-npm-packages-colors-and-faker-now-what/ Marak/colors.js#285

yes I think it has to do with this

joshkautz commented 2 years ago

Having this issue too. Yikes!

Andrew-Hopkins-Liqua commented 2 years ago

@jhuleatt Is there anything we can do to avoid the colors library and fastpace this issue until Marak finishes his protest? I believe this is the dependency tree that is causing this issue

Andrew-Hopkins-Liqua commented 2 years ago

update: winstonJS, and logformJS have pinned the colors package to 1.4.0 to avoid the security vulnerability.

My GitHub actions are now working again (albeit with a lot of depreciation warnings)

anthonyjdella commented 2 years ago

Just replying because I'm also having the same issue. It is causing my deploy to fail 😢

Edit: It works now, as of 8:20PM CST. Thanks Andrew!

Andrew-Hopkins-Liqua commented 2 years ago

It works now, as of 8:20PM CST. Thanks Andrew!

I'm happy to be a messenger of good news! but just to be clear: I'm not a maintainer of any of these repo's . just a fellow dev who was impacted by the Liberty 2 issue

elsowiny commented 2 years ago

update: winstonJS, and logformJS have pinned the colors package to 1.4.0 to avoid the security vulnerability.

My GitHub actions are now working again (albeit with a lot of depreciation warnings)

thank you for the updates!

jhuleatt commented 2 years ago

Thanks for the helpful information @Andrew-Hopkins-Liqua. To tie things together, here's the bug in the Firebase CLI repo: https://github.com/firebase/firebase-tools/issues/3999

sfxoodeyemi commented 2 years ago

I'm experiencing this in my nestjs app. I get this on the aws build console.

jhuleatt commented 2 years ago

This was fixed in the Firebase CLI in https://github.com/firebase/firebase-tools/pull/4004