Skip to content

run_tests_in_ci.js: fix truncated log output #7553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Aug 14, 2023

This PR fixes a long-standing bug in the GitHub continuous integration tests where the logs from failed tests were truncated, masking the failures, making investigation nearly impossible. The problem was in scripts/run_tests_in_ci.js which buffered the test command's output in memory then printed it after the fact.

In order to ensure that the script completed with a non-zero exit code (to indicate test failure) it called process.exit(1) (docs). The problem is that process.exit() documents that it

will force the process to exit as quickly as possible even if there are still asynchronous operations pending that have not yet completed fully, including I/O operations to process.stdout and process.stderr

So the first problem was that run_tests_in_ci.js calling process.exit(1) would terminate the process before the test logs had been completely written to stdout/stderr, leading to truncated log output.

The fix is to instead set process.exitCode=1, which tells node to use the given exit code once all asynchronous work has completed, including flushing stdout/stderr.

The second problem had to do with how the output from the command was manually captured and was being printed before it was fully buffered from the child process. The fix for this was to directly use node's child_process module rather than the child-process-promise dependency so that output capturing could be reliably implemented.

@dconeybe dconeybe self-assigned this Aug 14, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 14, 2023

⚠️ No Changeset found

Latest commit: ac415b1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dconeybe dconeybe changed the title run_tests_in_ci.js: set process.exitCode=1 instead of calling process.exit(1) to fix truncated output run_tests_in_ci.js: fix truncated log output Aug 14, 2023
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 14, 2023

Size Report 1

Affected Products

  • @firebase/auth

    TypeBase (040b0b4)Merge (b0ddc2c)Diff
    browser177 kB177 kB+167 B (+0.1%)
    cordova206 kB206 kB+176 B (+0.1%)
    esm5231 kB231 kB+176 B (+0.1%)
    main175 kB175 kB+176 B (+0.1%)
    module177 kB177 kB+167 B (+0.1%)
    react-native189 kB190 kB+176 B (+0.1%)
  • @firebase/auth/cordova

    TypeBase (040b0b4)Merge (b0ddc2c)Diff
    browser206 kB206 kB+176 B (+0.1%)
    module206 kB206 kB+176 B (+0.1%)
  • @firebase/auth/internal

    TypeBase (040b0b4)Merge (b0ddc2c)Diff
    browser188 kB188 kB+167 B (+0.1%)
    esm5244 kB244 kB+176 B (+0.1%)
    main211 kB211 kB+176 B (+0.1%)
    module188 kB188 kB+167 B (+0.1%)
  • bundle

    TypeBase (040b0b4)Merge (b0ddc2c)Diff
    auth (Anonymous)72.6 kB72.7 kB+75 B (+0.1%)
    auth (EmailAndPassword)79.9 kB80.0 kB+75 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)99.2 kB99.3 kB+75 B (+0.1%)
    auth (GooglePopup)96.5 kB96.6 kB+75 B (+0.1%)
    auth (GoogleRedirect)96.7 kB96.8 kB+75 B (+0.1%)
    auth (Phone)82.9 kB83.0 kB+75 B (+0.1%)
  • firebase

    TypeBase (040b0b4)Merge (b0ddc2c)Diff
    firebase-auth-compat.js136 kB136 kB+77 B (+0.1%)
    firebase-auth-cordova.js174 kB174 kB+66 B (+0.0%)
    firebase-auth.js147 kB147 kB+77 B (+0.1%)
    firebase-compat.js778 kB778 kB+77 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/QGtRBaX6Kj.html

@DellaBitta
Copy link
Contributor

Have you tested to ensure that GHA evaluates the return code correctly to detect that an error has occurred?

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 14, 2023

Size Analysis Report 1

Affected Products

  • @firebase/auth

    • ActionCodeOperation

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.8 kB36.9 kB+75 B (+0.2%)
      size-with-ext-deps57.6 kB57.7 kB+75 B (+0.1%)
    • ActionCodeURL

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.7 kB37.7 kB+75 B (+0.2%)
      size-with-ext-deps58.7 kB58.8 kB+75 B (+0.1%)
    • AuthCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.8 kB36.9 kB+75 B (+0.2%)
      size-with-ext-deps57.6 kB57.7 kB+75 B (+0.1%)
    • AuthErrorCodes

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.7 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • EmailAuthCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.6 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • EmailAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size43.0 kB43.1 kB+75 B (+0.2%)
      size-with-ext-deps64.1 kB64.2 kB+75 B (+0.1%)
    • FacebookAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.6 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • FactorId

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.4 kB+75 B (+0.1%)
    • GithubAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.6 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • GoogleAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.6 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • OAuthCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.7 kB38.8 kB+75 B (+0.2%)
      size-with-ext-deps59.5 kB59.6 kB+75 B (+0.1%)
    • OAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size42.6 kB42.6 kB+75 B (+0.2%)
      size-with-ext-deps63.4 kB63.4 kB+75 B (+0.1%)
    • OperationType

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • PhoneAuthCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.7 kB38.8 kB+75 B (+0.2%)
      size-with-ext-deps59.5 kB59.6 kB+75 B (+0.1%)
    • PhoneAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.4 kB40.5 kB+75 B (+0.2%)
      size-with-ext-deps61.2 kB61.3 kB+75 B (+0.1%)
    • PhoneMultiFactorGenerator

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.4 kB37.5 kB+75 B (+0.2%)
      size-with-ext-deps58.2 kB58.3 kB+75 B (+0.1%)
    • ProviderId

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.7 kB36.8 kB+75 B (+0.2%)
      size-with-ext-deps57.5 kB57.5 kB+75 B (+0.1%)
    • RecaptchaVerifier

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size43.2 kB43.2 kB+75 B (+0.2%)
      size-with-ext-deps64.0 kB64.0 kB+75 B (+0.1%)
    • SAMLAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size42.9 kB43.0 kB+75 B (+0.2%)
      size-with-ext-deps63.7 kB63.8 kB+75 B (+0.1%)
    • SignInMethod

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.7 kB36.8 kB+75 B (+0.2%)
      size-with-ext-deps57.5 kB57.6 kB+75 B (+0.1%)
    • TotpMultiFactorGenerator

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size39.1 kB39.2 kB+75 B (+0.2%)
      size-with-ext-deps59.9 kB59.9 kB+75 B (+0.1%)
    • TotpSecret

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.5 kB37.6 kB+75 B (+0.2%)
      size-with-ext-deps58.3 kB58.4 kB+75 B (+0.1%)
    • TwitterAuthProvider

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.6 kB41.7 kB+75 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+75 B (+0.1%)
    • applyActionCode

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.7 kB36.8 kB+75 B (+0.2%)
      size-with-ext-deps57.5 kB57.5 kB+75 B (+0.1%)
    • beforeAuthStateChanged

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • browserLocalPersistence

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.0 kB40.1 kB+75 B (+0.2%)
      size-with-ext-deps60.9 kB60.9 kB+75 B (+0.1%)
    • browserPopupRedirectResolver

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size61.0 kB61.1 kB+75 B (+0.1%)
      size-with-ext-deps82.0 kB82.1 kB+75 B (+0.1%)
    • browserSessionPersistence

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.0 kB40.1 kB+75 B (+0.2%)
      size-with-ext-deps60.9 kB60.9 kB+75 B (+0.1%)
    • checkActionCode

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.8 kB37.9 kB+75 B (+0.2%)
      size-with-ext-deps58.6 kB58.7 kB+75 B (+0.1%)
    • confirmPasswordReset

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.9 kB37.0 kB+75 B (+0.2%)
      size-with-ext-deps57.7 kB57.8 kB+75 B (+0.1%)
    • connectAuthEmulator

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.3 kB38.4 kB+75 B (+0.2%)
      size-with-ext-deps59.1 kB59.2 kB+75 B (+0.1%)
    • createUserWithEmailAndPassword

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.7 kB40.8 kB+75 B (+0.2%)
      size-with-ext-deps61.5 kB61.6 kB+75 B (+0.1%)
    • debugErrorMap

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size48.8 kB48.9 kB+75 B (+0.2%)
      size-with-ext-deps69.6 kB69.6 kB+75 B (+0.1%)
    • deleteUser

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • fetchSignInMethodsForEmail

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.9 kB37.0 kB+75 B (+0.2%)
      size-with-ext-deps57.7 kB57.8 kB+75 B (+0.1%)
    • getAdditionalUserInfo

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.9 kB38.0 kB+75 B (+0.2%)
      size-with-ext-deps58.7 kB58.8 kB+75 B (+0.1%)
    • getAuth

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size71.1 kB71.2 kB+75 B (+0.1%)
      size-with-ext-deps98.6 kB98.6 kB+75 B (+0.1%)
    • getIdToken

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • getIdTokenResult

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.6 kB+75 B (+0.2%)
      size-with-ext-deps57.3 kB57.4 kB+75 B (+0.1%)
    • getMultiFactorResolver

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size39.5 kB39.6 kB+75 B (+0.2%)
      size-with-ext-deps60.3 kB60.3 kB+75 B (+0.1%)
    • getRedirectResult

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size44.1 kB44.2 kB+75 B (+0.2%)
      size-with-ext-deps64.9 kB65.0 kB+75 B (+0.1%)
    • inMemoryPersistence

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.6 kB+75 B (+0.2%)
      size-with-ext-deps57.3 kB57.4 kB+75 B (+0.1%)
    • indexedDBLocalPersistence

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size44.0 kB44.1 kB+75 B (+0.2%)
      size-with-ext-deps64.8 kB64.9 kB+75 B (+0.1%)
    • initializeAuth

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.8 kB36.9 kB+75 B (+0.2%)
      size-with-ext-deps58.1 kB58.2 kB+75 B (+0.1%)
    • initializeRecaptchaConfig

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size39.0 kB39.1 kB+75 B (+0.2%)
      size-with-ext-deps59.8 kB59.9 kB+75 B (+0.1%)
    • isSignInWithEmailLink

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.8 kB37.8 kB+75 B (+0.2%)
      size-with-ext-deps58.8 kB58.9 kB+75 B (+0.1%)
    • linkWithCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.6 kB37.7 kB+75 B (+0.2%)
      size-with-ext-deps58.4 kB58.5 kB+75 B (+0.1%)
    • linkWithPhoneNumber

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.2 kB41.2 kB+75 B (+0.2%)
      size-with-ext-deps62.0 kB62.0 kB+75 B (+0.1%)
    • linkWithPopup

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size47.7 kB47.8 kB+75 B (+0.2%)
      size-with-ext-deps68.5 kB68.6 kB+75 B (+0.1%)
    • linkWithRedirect

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size42.9 kB43.0 kB+75 B (+0.2%)
      size-with-ext-deps63.7 kB63.8 kB+75 B (+0.1%)
    • multiFactor

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.8 kB38.9 kB+75 B (+0.2%)
      size-with-ext-deps59.6 kB59.6 kB+75 B (+0.1%)
    • onAuthStateChanged

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • onIdTokenChanged

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • parseActionCodeURL

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.7 kB37.8 kB+75 B (+0.2%)
      size-with-ext-deps58.7 kB58.8 kB+75 B (+0.1%)
    • prodErrorMap

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.6 kB+75 B (+0.2%)
      size-with-ext-deps57.3 kB57.4 kB+75 B (+0.1%)
    • reauthenticateWithCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.2 kB38.2 kB+75 B (+0.2%)
      size-with-ext-deps59.0 kB59.0 kB+75 B (+0.1%)
    • reauthenticateWithPhoneNumber

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.7 kB41.8 kB+75 B (+0.2%)
      size-with-ext-deps62.5 kB62.6 kB+75 B (+0.1%)
    • reauthenticateWithPopup

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size47.7 kB47.8 kB+75 B (+0.2%)
      size-with-ext-deps68.5 kB68.6 kB+75 B (+0.1%)
    • reauthenticateWithRedirect

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size42.7 kB42.7 kB+75 B (+0.2%)
      size-with-ext-deps63.5 kB63.5 kB+75 B (+0.1%)
    • reload

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.6 kB+75 B (+0.2%)
      size-with-ext-deps57.3 kB57.4 kB+75 B (+0.1%)
    • sendEmailVerification

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.5 kB37.6 kB+75 B (+0.2%)
      size-with-ext-deps58.3 kB58.4 kB+75 B (+0.1%)
    • sendPasswordResetEmail

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.4 kB40.5 kB+75 B (+0.2%)
      size-with-ext-deps61.2 kB61.3 kB+75 B (+0.1%)
    • sendSignInLinkToEmail

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size40.5 kB40.5 kB+75 B (+0.2%)
      size-with-ext-deps61.2 kB61.3 kB+75 B (+0.1%)
    • setPersistence

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • signInAnonymously

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.7 kB37.8 kB+75 B (+0.2%)
      size-with-ext-deps58.5 kB58.6 kB+75 B (+0.1%)
    • signInWithCredential

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size38.0 kB38.0 kB+75 B (+0.2%)
      size-with-ext-deps58.7 kB58.8 kB+75 B (+0.1%)
    • signInWithCustomToken

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.6 kB37.7 kB+75 B (+0.2%)
      size-with-ext-deps58.4 kB58.4 kB+75 B (+0.1%)
    • signInWithEmailAndPassword

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size44.7 kB44.8 kB+75 B (+0.2%)
      size-with-ext-deps65.7 kB65.8 kB+75 B (+0.1%)
    • signInWithEmailLink

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size44.7 kB44.8 kB+75 B (+0.2%)
      size-with-ext-deps65.7 kB65.8 kB+75 B (+0.1%)
    • signInWithPhoneNumber

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size41.5 kB41.6 kB+75 B (+0.2%)
      size-with-ext-deps62.3 kB62.4 kB+75 B (+0.1%)
    • signInWithPopup

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size47.7 kB47.8 kB+75 B (+0.2%)
      size-with-ext-deps68.5 kB68.6 kB+75 B (+0.1%)
    • signInWithRedirect

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size42.4 kB42.5 kB+75 B (+0.2%)
      size-with-ext-deps63.2 kB63.2 kB+75 B (+0.1%)
    • signOut

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.4 kB+75 B (+0.1%)
    • unlink

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.2 kB37.2 kB+75 B (+0.2%)
      size-with-ext-deps57.9 kB58.0 kB+75 B (+0.1%)
    • updateCurrentUser

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • updateEmail

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.9 kB37.0 kB+75 B (+0.2%)
      size-with-ext-deps57.7 kB57.7 kB+75 B (+0.1%)
    • updatePassword

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.9 kB37.0 kB+75 B (+0.2%)
      size-with-ext-deps57.7 kB57.7 kB+75 B (+0.1%)
    • updatePhoneNumber

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.3 kB37.4 kB+75 B (+0.2%)
      size-with-ext-deps58.1 kB58.2 kB+75 B (+0.1%)
    • updateProfile

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.1 kB37.2 kB+75 B (+0.2%)
      size-with-ext-deps57.9 kB57.9 kB+75 B (+0.1%)
    • useDeviceLanguage

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • validatePassword

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size36.6 kB36.7 kB+75 B (+0.2%)
      size-with-ext-deps57.4 kB57.5 kB+75 B (+0.1%)
    • verifyBeforeUpdateEmail

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.5 kB37.6 kB+75 B (+0.2%)
      size-with-ext-deps58.3 kB58.4 kB+75 B (+0.1%)
    • verifyPasswordResetCode

      Size

      TypeBase (040b0b4)Merge (b0ddc2c)Diff
      size37.9 kB38.0 kB+75 B (+0.2%)
      size-with-ext-deps58.7 kB58.7 kB+75 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/m3CWKY1hMj.html

@dconeybe
Copy link
Contributor Author

Have you tested to ensure that GHA evaluates the return code correctly to detect that an error has occurred?

I've tested locally, but that's a good point. I'll test it out in CI as well. Thanks for the idea.

…re stdout/stderr, rather than implementing it ourselves since our own implementation seems to truncate the output, probably due to a misunderstanding of output buffering.
…he 'child-process-promise' library, so that capturing output is fully controlled and does not truncate.
…tting the exception bubble up, to avoid truncating output
@dconeybe
Copy link
Contributor Author

I never was able to actually fix the log truncation issue. Instead of fighting with this, we've decided to migrate our github actions away from run_tests_in_ci.js, such as in these PRs: #7523 and #7558

@dconeybe dconeybe closed this Aug 17, 2023
@dconeybe dconeybe deleted the dconeybe/RunTestsInCiJsTruncatedLogOutputFix branch August 24, 2023 15:52
@firebase firebase locked and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants