Skip to content
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

Fix e2e notify script again #5911

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Fix e2e notify script again #5911

merged 2 commits into from
Feb 1, 2022

Conversation

hsubox76
Copy link
Contributor

Send version and tag.

@hsubox76 hsubox76 requested a review from allspain as a code owner January 21, 2022 00:47
@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2022

⚠️ No Changeset found

Latest commit: ff47fdb

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 21, 2022

Size Report 1

Affected Products

  • @firebase/auth-compat

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    browser20.0 kB20.1 kB+83 B (+0.4%)
    esm526.9 kB26.9 kB+87 B (+0.3%)
    main29.4 kB29.5 kB+87 B (+0.3%)
    module20.0 kB20.1 kB+83 B (+0.4%)
  • @firebase/auth/cordova

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    browser180 kB180 kB+28 B (+0.0%)
    module180 kB180 kB+28 B (+0.0%)
  • @firebase/auth/internal

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    browser163 kB163 kB+12 B (+0.0%)
    esm5212 kB212 kB+28 B (+0.0%)
    main179 kB179 kB+28 B (+0.0%)
    module163 kB163 kB+12 B (+0.0%)
  • @firebase/auth/react-native

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    browser163 kB164 kB+893 B (+0.5%)
    module163 kB164 kB+893 B (+0.5%)
  • @firebase/firestore

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    browser228 kB228 kB+734 B (+0.3%)
    esm5285 kB285 kB+769 B (+0.3%)
    main453 kB454 kB+1.15 kB (+0.3%)
    module228 kB228 kB+734 B (+0.3%)
    react-native228 kB229 kB+734 B (+0.3%)
  • firebase

    TypeBase (67b6dec)Merge (c9f0a46)Diff
    firebase-auth-compat.js123 kB123 kB-29 B (-0.0%)
    firebase-auth-cordova.js462 kB462 kB+28 B (+0.0%)
    firebase-auth-react-native.js484 kB486 kB+1.54 kB (+0.3%)
    firebase-auth.js411 kB411 kB+12 B (+0.0%)
    firebase-compat.js753 kB753 kB-29 B (-0.0%)
    firebase-firestore.js770 kB772 kB+2.18 kB (+0.3%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 21, 2022

Size Analysis Report 1

Affected Products

  • @firebase/auth

    • checkActionCode

      Dependency

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      classes

      14 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfo
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      14 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfoImpl
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      + PhoneMultiFactorInfoImpl
      - PhoneMultiFactorInfo

    • getMultiFactorResolver

      Dependency

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      classes

      17 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      MultiFactorResolverImpl
      MultiFactorSessionImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfo
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserCredentialImpl
      UserImpl
      UserMetadata

      17 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      MultiFactorResolverImpl
      MultiFactorSessionImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfoImpl
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserCredentialImpl
      UserImpl
      UserMetadata

      + PhoneMultiFactorInfoImpl
      - PhoneMultiFactorInfo

    • multiFactor

      Dependency

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      classes

      16 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      MultiFactorSessionImpl
      MultiFactorUserImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfo
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      16 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      MultiFactorSessionImpl
      MultiFactorUserImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfoImpl
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      + PhoneMultiFactorInfoImpl
      - PhoneMultiFactorInfo

    • verifyPasswordResetCode

      Dependency

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      classes

      14 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfo
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      14 dependencies

      AuthImpl
      AuthInterop
      Delay
      FetchProvider
      InMemoryPersistence
      MultiFactorInfoImpl
      NetworkTimeout
      PersistenceUserManager
      PhoneMultiFactorInfoImpl
      ProactiveRefresh
      StsTokenManager
      Subscription
      UserImpl
      UserMetadata

      + PhoneMultiFactorInfoImpl
      - PhoneMultiFactorInfo

  • @firebase/firestore

    • _setIndexConfiguration

      Size

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      size?20.7 kB? (?)
      size-with-ext-deps?69.2 kB? (?)

      Dependency

      TypeBase (67b6dec)Merge (c9f0a46)Diff
      functions?

      18 dependencies

      B
      Ea
      Fo
      L
      M
      Mh
      O
      Oh
      Su
      Ta
      U
      Ua
      Vu
      Zs
      ga
      qa
      st
      to

      ?
      classes?

      24 dependencies

      $h
      Aa
      C
      Fa
      G
      Gc
      J
      Mo
      Q
      Ra
      W
      X
      Y
      Z
      da
      dt
      it
      mt
      no
      tt
      tu
      wa
      xa
      z

      ?
      variables?

      D
      N
      _a
      _n
      _t
      j
      k
      vu
      wn

      ?
      enums??

      External Dependency

      ModuleBase (67b6dec)Merge (c9f0a46)Diff
      @firebase/app?

      SDK_VERSION
      _registerComponent
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      LogLevel
      Logger

      ?
      @firebase/util?

      FirebaseError

      ?

Test Logs

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

testUrl: workflowUrl
};

if (versionOrTag) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a risk that versionOrTag is a truthy non-string? something like 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so because the workflow_dispatch input type defaults to string if you don't specify a type and I haven't here:

if (versionOrTag) {
// Matches a staging version tag pattern.
const match = versionOrTag.match(/^(\d+.\d+.\d+)-\d+$/);
if (match) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like we should do a length check in case match has fewer than expected matches. Accessing 1 directly without validating that it's a valid key seems dangerous

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that outcome is possible, if the capturing group doesn't exist in the string, it won't match at all and match will be null. I think the only outcomes are null or an array of length 2. I tried a couple of test strings in the console and can't think of a case that would return non-null but also not have a captured group, let me know if I haven't thought of a case though, regex isn't my strength.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good I'm ok approving if you are confident

@allspain allspain assigned hsubox76 and unassigned allspain Jan 25, 2022
@hsubox76 hsubox76 assigned allspain and unassigned hsubox76 Jan 26, 2022
@allspain allspain assigned hsubox76 and unassigned allspain Jan 31, 2022
@hsubox76 hsubox76 merged commit b02927e into master Feb 1, 2022
@hsubox76 hsubox76 deleted the ch-e2e-notify-2 branch February 1, 2022 00:55
@firebase firebase locked and limited conversation to collaborators Mar 3, 2022
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