linear-b / gitstream

/:\ gitStream - Workflow automation for your git repo. Use YAML to auto-assign reviewers, auto-merge PRs, automatic PR labeler, and more.
https://gitstream.cm
Apache License 2.0
254 stars 30 forks source link

TypeError: _formatInputToList.map is not a function #473

Closed cgardner closed 5 months ago

cgardner commented 5 months ago

Describe the bug

I'm getting the following error when gitStream tries to verify my gitstream.cm Pull Request. I tried testing the same file with the

Failed to parse cm file {
  ruleFile: 'gitstream.cm',
  error: '(unknown path)\n  TypeError: _formatInputToList.map is not a function'
}
Error: {
  "message": "Error in gitstream.cm:\n (unknown path)\n  TypeError: _formatInputToList.map is not a function",
  "owner": "myorganization",
  "repo": "cm",
  "branch": "prs-without-tests-label"
}

To Reproduce

Steps to reproduce the behavior:

Here's my automation file:

# -*- mode: yaml -*-
# This example configuration for provides basic automations to get started with gitStream.
# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/
manifest:
  version: 1.0

automations:
  # Add a label that indicates how many minutes it will take to review the PR.
  estimated_time_to_review:
    if:
      - true
    run:
      - action: add-label@v1
        args:
          label: "{{ calc.etr }} min review"
          color: {{ colors.red if (calc.etr >= 20) else ( colors.yellow if (calc.etr >= 5) else colors.green ) }}

  # Add a label letting reviewers know that the PR is missing tests
  label_prs_without_tests:
    if:
      - {{ has.apex | some }}
      - {{ has.tests | nope }}
    run: 
      - action: add-comment@v1
        args:
          comment: |
            It looks like you've added Apex code, but no tests. Please add tests to your code.
      - action: add-label@v1
        args:
          label: 'missing-tests'
          color: {{ colors.red }}

# +----------------------------------------------------------------------------+
# | Custom Expressions                                                         |
# | https://docs.gitstream.cm/how-it-works/#custom-expressions                 |
# +----------------------------------------------------------------------------+

calc:
  etr: {{ branch | estimatedReviewTime }}

has:
  apex:  {{ files | match(regex=r/.*(?<!Test)\.cls$/) }}
  tests: {{ files | match(regex=r/.*Test.*\.cls$/) }}

colors:
  red: 'b60205'
  yellow: 'fbca04'
  green: '0e8a16'

It worked just fine before I added the label_prs_without_tests automation and has expressions.

Expected behavior

I would expect to receive more information telling me what I did wrong.

Additional context

Here's a cleaned up github actions log:

2024-03-14T22:12:09.4403515Z Current runner version: '2.314.1'
2024-03-14T22:12:09.4436828Z ##[group]Operating System
2024-03-14T22:12:09.4437611Z Ubuntu
2024-03-14T22:12:09.4437976Z 22.04.4
2024-03-14T22:12:09.4438291Z LTS
2024-03-14T22:12:09.4438670Z ##[endgroup]
2024-03-14T22:12:09.4439058Z ##[group]Runner Image
2024-03-14T22:12:09.4439503Z Image: ubuntu-22.04
2024-03-14T22:12:09.4439942Z Version: 20240310.1.0
2024-03-14T22:12:09.4441385Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240310.1/images/ubuntu/Ubuntu2204-Readme.md
2024-03-14T22:12:09.4442838Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240310.1
2024-03-14T22:12:09.4443826Z ##[endgroup]
2024-03-14T22:12:09.4444194Z ##[group]Runner Image Provisioner
2024-03-14T22:12:09.4444682Z 2.0.359.1
2024-03-14T22:12:09.4445073Z ##[endgroup]
2024-03-14T22:12:09.4447259Z ##[group]GITHUB_TOKEN Permissions
2024-03-14T22:12:09.4449031Z Actions: write
2024-03-14T22:12:09.4449410Z Checks: write
2024-03-14T22:12:09.4450052Z Contents: write
2024-03-14T22:12:09.4450497Z Deployments: write
2024-03-14T22:12:09.4450894Z Discussions: write
2024-03-14T22:12:09.4451426Z Issues: write
2024-03-14T22:12:09.4451756Z Metadata: read
2024-03-14T22:12:09.4452151Z Packages: write
2024-03-14T22:12:09.4452595Z Pages: write
2024-03-14T22:12:09.4452932Z PullRequests: write
2024-03-14T22:12:09.4453367Z RepositoryProjects: write
2024-03-14T22:12:09.4453882Z SecurityEvents: write
2024-03-14T22:12:09.4454273Z Statuses: write
2024-03-14T22:12:09.4454659Z ##[endgroup]
2024-03-14T22:12:09.4458014Z Secret source: Actions
2024-03-14T22:12:09.4458590Z Prepare workflow directory
2024-03-14T22:12:09.5111255Z Prepare all required actions
2024-03-14T22:12:09.5275226Z Getting action download info
2024-03-14T22:12:09.7056458Z Download action repository 'linear-b/gitstream-github-action@v1' (SHA:ba2dec66ead15c207d6414e787b069b0cee8eae0)
2024-03-14T22:12:10.2173301Z Getting action download info
2024-03-14T22:12:10.3437290Z Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
2024-03-14T22:12:10.4086169Z Download action repository 'actions/github-script@v6' (SHA:d7906e4ad0b1822421a7e6a35d5ca353c962f410)
2024-03-14T22:12:10.9504096Z Complete job name: gitStream workflow automation
2024-03-14T22:12:11.0413632Z ##[group]Run linear-b/gitstream-github-action@v1
2024-03-14T22:12:11.0414155Z with:
2024-03-14T22:12:11.0414601Z   full_repository: myorganization/cm
2024-03-14T22:12:11.0415061Z   head_ref: prs-without-tests-label
2024-03-14T22:12:11.0415457Z   base_ref: main
2024-03-14T22:12:11.0434703Z   client_payload: "{\"repoPath\":\".github/workflows/gitstream.yml\",\"gitstreamGatesCheckId\":22682338476,\"repo\":\"cm\",\"owner\":\"myorganization\",\"branch\":\"prs-without-tests-label\",\"installationId\":47548319,\"pullRequestNumber\":1,\"headSha\":\"b29fea19e8f846aaadcd878ebb3e7dccd8236b5b\",\"baseRef\":\"main\",\"baseSha\":\"f22a39cc4fb01d0ef4f4ecb5660252cc14853147\",\"visibility\":\"private\",\"triggeredBy\":\"cgardner-rootstock\",\"triggeredPREvent\":\"synchronize\",\"source\":\"github\",\"env\":\"prod\",\"creator\":\"cgardner-rootstock\",\"analytics_url\":\"https://z0ievfnzr5.execute-api.us-west-1.amazonaws.com/prod/analytics\",\"analyticsHttpApiUrl\":\"https://api.amplitude.com/2/httpapi\",\"segmentServiceUrl\":\"https://api.segment.io\",\"prContext\":{\"isFullyInstalled\":false,\"title\":\"feat: added automation to label missing-tests\",\"approvals\":[],\"requested_changes\":[],\"author\":\"cgardner-rootstock\",\"description\":\"\",\"checks\":[],\"created_at\":\"2024-03-08T17:27:42Z\",\"draft\":false,\"mergeable\":true,\"labels\":[\"cm-changes\"],\"reviewers\":[],\"status\":\"open\",\"updated_at\":\"2024-03-14T22:11:32Z\",\"assignees\":[],\"contributors\":[],\"paths\":[],\"author_teams\":[\"DevOps\"],\"author_is_org_member\":true,\"comments\":[{\"commenter\":\"gitstream-cm\",\"content\":\"YGBgIAogLzpcIGdpdFN0cmVhbSBEUlkgUlVOIAogYGBgIAoqKmdpdHN0cmVhbS9lc3RpbWF0ZWRfdGltZV90b19yZXZpZXcqKiAKIArigKIgYWRkIGxhYmVsIGAxIG1pbiByZXZpZXdgIHdpdGggY29sb3IgYDBlOGExNmAgCgogClRvIGFjdGl2YXRlIHRoZXNlIGFjdGlvbnMgLSBtZXJnZSB0aGlzIFBSIGludG8gdGhlIG1haW4gYnJhbmNoIApfX19fX18gCkxlYXJuIG1vcmUgb24gdGhlIFtnaXRTdHJlYW0gRG9jc10oaHR0cHM6Ly9kb2NzLmdpdHN0cmVhbS5jbS8pIApTZWUgeW91ciBhdXRvbWF0aW9ucyBvbiB0aGUgW2dpdFN0cmVhbSBhcHBdKGh0dHBzOi8vYXBwLmdpdHN0cmVhbS5jbSkgCkNyZWF0ZSBuZXcgcnVsZXMgb24gdGhlIFtnaXRTdGVhbSBwbGF5Z3JvdW5kXShodHRwczovL2FwcC5naXRzdHJlYW0uY20vcGxheWdyb3VuZCkKCjxhdXRvbWF0aW9uIGlkPSJydWxlc19maWxlc19jaGFuZ2VzIi8+\",\"created_at\":\"2024-03-08T18:10:59Z\",\"id\":1986173850}],\"reviews\":[],\"conversations\":[],\"unresolved_threads\":0,\"number\":1,\"url\":\"https://github.com/myorganization/cm/pull/1\",\"isPrivate\":true,\"target\":\"main\",\"source\":\"prs-without-tests-label\"},\"hasCmRepo\":true,\"providerRepoId\":760907004,\"isNewCommit\":true,\"trigger_id\":\"e9f4e86f-8b3b-4111-9d27-216ef06b32b2\",\"headHttpUrl\":\"https://github.com/myorganization/cm\",\"explicitTriggers\":{\"gitstream.cm\":{\"shouldBeTriggered\":true}},\"webhookEventName\":\"pull_request_synchronize\",\"webhookEventNames\":{\"pull_request_synchronize\":true},\"githubToken\":\"***\",\"eventAction\":\"synchronize\",\"mergeCommitSha\":\"\",\"cmRepoId\":760907004,\"cmRepo\":\"cm\",\"cmRepoRef\":\"main\"}"
2024-03-14T22:12:11.0454456Z   installation_id: 47548319
2024-03-14T22:12:11.0455228Z   resolver_url: https://qembo8hwr6.execute-api.us-west-1.amazonaws.com/prod/api/v1/gitstream/resolve
2024-03-14T22:12:11.0457052Z   resolver_token: ***
2024-03-14T22:12:11.0457408Z   debug_mode: false
2024-03-14T22:12:11.0457845Z ##[endgroup]
2024-03-14T22:12:11.0684402Z ##[group]Run rm -rf gitstream
2024-03-14T22:12:11.0685066Z rm -rf gitstream
2024-03-14T22:12:11.0685455Z mkdir gitstream
2024-03-14T22:12:11.0685826Z cd gitstream
2024-03-14T22:12:11.0686278Z mkdir repo
2024-03-14T22:12:11.0726026Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-14T22:12:11.0726612Z ##[endgroup]
2024-03-14T22:12:11.1167429Z ##[group]Run actions/checkout@v3
2024-03-14T22:12:11.1167928Z with:
2024-03-14T22:12:11.1168257Z   repository: myorganization/cm
2024-03-14T22:12:11.1168629Z   ref: main
2024-03-14T22:12:11.1169040Z   path: gitstream/repo/
2024-03-14T22:12:11.1169610Z   token: ***
2024-03-14T22:12:11.1169951Z   ssh-strict: true
2024-03-14T22:12:11.1170350Z   persist-credentials: true
2024-03-14T22:12:11.1170733Z   clean: true
2024-03-14T22:12:11.1171146Z   sparse-checkout-cone-mode: true
2024-03-14T22:12:11.1171581Z   fetch-depth: 1
2024-03-14T22:12:11.1171920Z   fetch-tags: false
2024-03-14T22:12:11.1172366Z   lfs: false
2024-03-14T22:12:11.1172820Z   submodules: false
2024-03-14T22:12:11.1173173Z   set-safe-directory: true
2024-03-14T22:12:11.1173534Z ##[endgroup]
2024-03-14T22:12:11.3306582Z Syncing repository: myorganization/cm
2024-03-14T22:12:11.3308562Z ##[group]Getting Git version info
2024-03-14T22:12:11.3309549Z Working directory is '/home/runner/work/cm/cm/gitstream/repo'
2024-03-14T22:12:11.3310722Z [command]/usr/bin/git version
2024-03-14T22:12:11.3355202Z git version 2.43.2
2024-03-14T22:12:11.3376538Z ##[endgroup]
2024-03-14T22:12:11.3397504Z Temporarily overriding HOME='/home/runner/work/_temp/f679e50e-141d-4020-8720-89def01e04d9' before making global git config changes
2024-03-14T22:12:11.3399751Z Adding repository directory to the temporary git global config as a safe directory
2024-03-14T22:12:11.3403113Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cm/cm/gitstream/repo
2024-03-14T22:12:11.3447939Z Deleting the contents of '/home/runner/work/cm/cm/gitstream/repo'
2024-03-14T22:12:11.3452905Z ##[group]Initializing the repository
2024-03-14T22:12:11.3456856Z [command]/usr/bin/git init /home/runner/work/cm/cm/gitstream/repo
2024-03-14T22:12:11.3530767Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-03-14T22:12:11.3532838Z hint: is subject to change. To configure the initial branch name to use in all
2024-03-14T22:12:11.3533801Z hint: of your new repositories, which will suppress this warning, call:
2024-03-14T22:12:11.3534505Z hint: 
2024-03-14T22:12:11.3535007Z hint:  git config --global init.defaultBranch <name>
2024-03-14T22:12:11.3535449Z hint: 
2024-03-14T22:12:11.3536070Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-03-14T22:12:11.3536879Z hint: 'development'. The just-created branch can be renamed via this command:
2024-03-14T22:12:11.3537439Z hint: 
2024-03-14T22:12:11.3538273Z hint:  git branch -m <name>
2024-03-14T22:12:11.3550218Z Initialized empty Git repository in /home/runner/work/cm/cm/gitstream/repo/.git/
2024-03-14T22:12:11.3563844Z [command]/usr/bin/git remote add origin https://github.com/myorganization/cm
2024-03-14T22:12:11.3605939Z ##[endgroup]
2024-03-14T22:12:11.3607386Z ##[group]Disabling automatic garbage collection
2024-03-14T22:12:11.3611479Z [command]/usr/bin/git config --local gc.auto 0
2024-03-14T22:12:11.3650665Z ##[endgroup]
2024-03-14T22:12:11.3652331Z ##[group]Setting up auth
2024-03-14T22:12:11.3656856Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-03-14T22:12:11.3696507Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-14T22:12:11.4115985Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-03-14T22:12:11.4120118Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-14T22:12:11.4484087Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-03-14T22:12:11.4486566Z ##[endgroup]
2024-03-14T22:12:11.4487495Z ##[group]Fetching the repository
2024-03-14T22:12:11.4489812Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/main*:refs/remotes/origin/main* +refs/tags/main*:refs/tags/main*
2024-03-14T22:12:11.9791435Z remote: Enumerating objects: 7, done.        
2024-03-14T22:12:11.9810434Z remote: Counting objects:  14% (1/7)        
2024-03-14T22:12:11.9811251Z remote: Counting objects:  28% (2/7)        
2024-03-14T22:12:11.9812083Z remote: Counting objects:  42% (3/7)        
2024-03-14T22:12:11.9813065Z remote: Counting objects:  57% (4/7)        
2024-03-14T22:12:11.9813910Z remote: Counting objects:  71% (5/7)        
2024-03-14T22:12:11.9814641Z remote: Counting objects:  85% (6/7)        
2024-03-14T22:12:11.9815569Z remote: Counting objects: 100% (7/7)        
2024-03-14T22:12:11.9816497Z remote: Counting objects: 100% (7/7), done.        
2024-03-14T22:12:11.9817566Z remote: Compressing objects:  20% (1/5)        
2024-03-14T22:12:11.9818577Z remote: Compressing objects:  40% (2/5)        
2024-03-14T22:12:11.9819502Z remote: Compressing objects:  60% (3/5)        
2024-03-14T22:12:11.9820404Z remote: Compressing objects:  80% (4/5)        
2024-03-14T22:12:11.9821468Z remote: Compressing objects: 100% (5/5)        
2024-03-14T22:12:11.9822450Z remote: Compressing objects: 100% (5/5), done.        
2024-03-14T22:12:11.9824181Z remote: Total 7 (delta 0), reused 7 (delta 0), pack-reused 0        
2024-03-14T22:12:11.9825430Z From https://github.com/myorganization/cm
2024-03-14T22:12:11.9826379Z  * [new branch]      main       -> origin/main
2024-03-14T22:12:11.9828810Z ##[endgroup]
2024-03-14T22:12:11.9829959Z ##[group]Determining the checkout info
2024-03-14T22:12:11.9831019Z [command]/usr/bin/git branch --list --remote origin/main
2024-03-14T22:12:11.9831851Z   origin/main
2024-03-14T22:12:11.9834009Z ##[endgroup]
2024-03-14T22:12:11.9835135Z ##[group]Checking out the ref
2024-03-14T22:12:11.9836351Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-03-14T22:12:11.9837558Z Switched to a new branch 'main'
2024-03-14T22:12:11.9838512Z branch 'main' set up to track 'origin/main'.
2024-03-14T22:12:11.9840694Z ##[endgroup]
2024-03-14T22:12:11.9842477Z [command]/usr/bin/git log -1 --format='%H'
2024-03-14T22:12:11.9843483Z 'f22a39cc4fb01d0ef4f4ecb5660252cc14853147'
2024-03-14T22:12:11.9998691Z ##[group]Run actions/github-script@v6
2024-03-14T22:12:11.9999429Z with:
2024-03-14T22:12:12.0005129Z   script: try {
  function convertToSafeString(input) {
    return (input || '').replace(/['`]/g, "\\$&");
  };
  function escapeApostrophe(input) {
    return (input || '').replace(/'/g, "\\'");
  };
  const base_ref = escapeApostrophe(process.env.BASE_REF_ARG);
  const head_ref = escapeApostrophe(process.env.HEAD_REF_ARG);
  const url = convertToSafeString(process.env.URL_ARG);
  const client_payload = convertToSafeString(process.env.PAYLOAD_ARG);
  core.setOutput('base_ref', base_ref);
  core.setOutput('head_ref', head_ref);
  core.setOutput('url', url);
  core.setOutput('client_payload', client_payload);
} catch (err) {
  core.error(`Failed producing safe string: ${err}`);
  process.exit(1);
}

2024-03-14T22:12:12.0010658Z   github-token: ***
2024-03-14T22:12:12.0011679Z   debug: false
2024-03-14T22:12:12.0012350Z   user-agent: actions/github-script
2024-03-14T22:12:12.0013190Z   result-encoding: json
2024-03-14T22:12:12.0014006Z   retries: 0
2024-03-14T22:12:12.0014715Z   retry-exempt-status-codes: 400,401,403,404,422
2024-03-14T22:12:12.0015564Z env:
2024-03-14T22:12:12.0016521Z   BASE_REF_ARG: main
2024-03-14T22:12:12.0017249Z   HEAD_REF_ARG: prs-without-tests-label
2024-03-14T22:12:12.0052616Z   PAYLOAD_ARG: "{\"repoPath\":\".github/workflows/gitstream.yml\",\"gitstreamGatesCheckId\":22682338476,\"repo\":\"cm\",\"owner\":\"myorganization\",\"branch\":\"prs-without-tests-label\",\"installationId\":47548319,\"pullRequestNumber\":1,\"headSha\":\"b29fea19e8f846aaadcd878ebb3e7dccd8236b5b\",\"baseRef\":\"main\",\"baseSha\":\"f22a39cc4fb01d0ef4f4ecb5660252cc14853147\",\"visibility\":\"private\",\"triggeredBy\":\"cgardner-rootstock\",\"triggeredPREvent\":\"synchronize\",\"source\":\"github\",\"env\":\"prod\",\"creator\":\"cgardner-rootstock\",\"analytics_url\":\"https://z0ievfnzr5.execute-api.us-west-1.amazonaws.com/prod/analytics\",\"analyticsHttpApiUrl\":\"https://api.amplitude.com/2/httpapi\",\"segmentServiceUrl\":\"https://api.segment.io\",\"prContext\":{\"isFullyInstalled\":false,\"title\":\"feat: added automation to label missing-tests\",\"approvals\":[],\"requested_changes\":[],\"author\":\"cgardner-rootstock\",\"description\":\"\",\"checks\":[],\"created_at\":\"2024-03-08T17:27:42Z\",\"draft\":false,\"mergeable\":true,\"labels\":[\"cm-changes\"],\"reviewers\":[],\"status\":\"open\",\"updated_at\":\"2024-03-14T22:11:32Z\",\"assignees\":[],\"contributors\":[],\"paths\":[],\"author_teams\":[\"DevOps\"],\"author_is_org_member\":true,\"comments\":[{\"commenter\":\"gitstream-cm\",\"content\":\"YGBgIAogLzpcIGdpdFN0cmVhbSBEUlkgUlVOIAogYGBgIAoqKmdpdHN0cmVhbS9lc3RpbWF0ZWRfdGltZV90b19yZXZpZXcqKiAKIArigKIgYWRkIGxhYmVsIGAxIG1pbiByZXZpZXdgIHdpdGggY29sb3IgYDBlOGExNmAgCgogClRvIGFjdGl2YXRlIHRoZXNlIGFjdGlvbnMgLSBtZXJnZSB0aGlzIFBSIGludG8gdGhlIG1haW4gYnJhbmNoIApfX19fX18gCkxlYXJuIG1vcmUgb24gdGhlIFtnaXRTdHJlYW0gRG9jc10oaHR0cHM6Ly9kb2NzLmdpdHN0cmVhbS5jbS8pIApTZWUgeW91ciBhdXRvbWF0aW9ucyBvbiB0aGUgW2dpdFN0cmVhbSBhcHBdKGh0dHBzOi8vYXBwLmdpdHN0cmVhbS5jbSkgCkNyZWF0ZSBuZXcgcnVsZXMgb24gdGhlIFtnaXRTdGVhbSBwbGF5Z3JvdW5kXShodHRwczovL2FwcC5naXRzdHJlYW0uY20vcGxheWdyb3VuZCkKCjxhdXRvbWF0aW9uIGlkPSJydWxlc19maWxlc19jaGFuZ2VzIi8+\",\"created_at\":\"2024-03-08T18:10:59Z\",\"id\":1986173850}],\"reviews\":[],\"conversations\":[],\"unresolved_threads\":0,\"number\":1,\"url\":\"https://github.com/myorganization/cm/pull/1\",\"isPrivate\":true,\"target\":\"main\",\"source\":\"prs-without-tests-label\"},\"hasCmRepo\":true,\"providerRepoId\":760907004,\"isNewCommit\":true,\"trigger_id\":\"e9f4e86f-8b3b-4111-9d27-216ef06b32b2\",\"headHttpUrl\":\"https://github.com/myorganization/cm\",\"explicitTriggers\":{\"gitstream.cm\":{\"shouldBeTriggered\":true}},\"webhookEventName\":\"pull_request_synchronize\",\"webhookEventNames\":{\"pull_request_synchronize\":true},\"githubToken\":\"***\",\"eventAction\":\"synchronize\",\"mergeCommitSha\":\"\",\"cmRepoId\":760907004,\"cmRepo\":\"cm\",\"cmRepoRef\":\"main\"}"
2024-03-14T22:12:12.0088488Z   URL_ARG: https://github.com/myorganization/cm
2024-03-14T22:12:12.0089325Z ##[endgroup]
2024-03-14T22:12:12.1145010Z ##[group]Run all=2147483647
2024-03-14T22:12:12.1145710Z all=2147483647
2024-03-14T22:12:12.1146237Z cd gitstream
2024-03-14T22:12:12.1146915Z cd repo
2024-03-14T22:12:12.1147803Z git fetch --deepen=$all origin $'main'
2024-03-14T22:12:12.1148938Z git remote add upstream $'https://github.com/myorganization/cm'
2024-03-14T22:12:12.1150139Z git fetch --deepen=$all upstream $'prs-without-tests-label'
2024-03-14T22:12:12.1151464Z git checkout -b $'upstream/prs-without-tests-label' $'upstream/prs-without-tests-label'
2024-03-14T22:12:12.1178864Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-14T22:12:12.1179539Z ##[endgroup]
2024-03-14T22:12:12.5413980Z From https://github.com/myorganization/cm
2024-03-14T22:12:12.5415625Z  * branch            main       -> FETCH_HEAD
2024-03-14T22:12:13.0364703Z From https://github.com/myorganization/cm
2024-03-14T22:12:13.0366496Z  * branch            prs-without-tests-label -> FETCH_HEAD
2024-03-14T22:12:13.0371969Z  * [new branch]      prs-without-tests-label -> upstream/prs-without-tests-label
2024-03-14T22:12:13.0428470Z Switched to a new branch 'upstream/prs-without-tests-label'
2024-03-14T22:12:13.0433363Z branch 'upstream/prs-without-tests-label' set up to track 'upstream/prs-without-tests-label'.
2024-03-14T22:12:13.0467309Z ##[group]Run cd gitstream
2024-03-14T22:12:13.0467778Z cd gitstream
2024-03-14T22:12:13.0468113Z mkdir cm
2024-03-14T22:12:13.0493214Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-14T22:12:13.0493757Z ##[endgroup]
2024-03-14T22:12:13.0676706Z ##[group]Run actions/checkout@v3
2024-03-14T22:12:13.0677212Z with:
2024-03-14T22:12:13.0677538Z   repository: myorganization/cm
2024-03-14T22:12:13.0677881Z   ref: main
2024-03-14T22:12:13.0678279Z   path: gitstream/cm/
2024-03-14T22:12:13.0678766Z   token: ***
2024-03-14T22:12:13.0679093Z   ssh-strict: true
2024-03-14T22:12:13.0679495Z   persist-credentials: true
2024-03-14T22:12:13.0680065Z   clean: true
2024-03-14T22:12:13.0681448Z   sparse-checkout-cone-mode: true
2024-03-14T22:12:13.0681994Z   fetch-depth: 1
2024-03-14T22:12:13.0682308Z   fetch-tags: false
2024-03-14T22:12:13.0682654Z   lfs: false
2024-03-14T22:12:13.0683069Z   submodules: false
2024-03-14T22:12:13.0683419Z   set-safe-directory: true
2024-03-14T22:12:13.0683746Z ##[endgroup]
2024-03-14T22:12:13.1536632Z Syncing repository: myorganization/cm
2024-03-14T22:12:13.1540992Z ##[group]Getting Git version info
2024-03-14T22:12:13.1542412Z Working directory is '/home/runner/work/cm/cm/gitstream/cm'
2024-03-14T22:12:13.1579531Z [command]/usr/bin/git version
2024-03-14T22:12:13.1626063Z git version 2.43.2
2024-03-14T22:12:13.1651108Z ##[endgroup]
2024-03-14T22:12:13.1667857Z Temporarily overriding HOME='/home/runner/work/_temp/d140b7fc-30dc-4788-8ecd-a6c8e5af8dda' before making global git config changes
2024-03-14T22:12:13.1670125Z Adding repository directory to the temporary git global config as a safe directory
2024-03-14T22:12:13.1673718Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cm/cm/gitstream/cm
2024-03-14T22:12:13.1722834Z Deleting the contents of '/home/runner/work/cm/cm/gitstream/cm'
2024-03-14T22:12:13.1728160Z ##[group]Initializing the repository
2024-03-14T22:12:13.1732155Z [command]/usr/bin/git init /home/runner/work/cm/cm/gitstream/cm
2024-03-14T22:12:13.1773463Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-03-14T22:12:13.1775441Z hint: is subject to change. To configure the initial branch name to use in all
2024-03-14T22:12:13.1777534Z hint: of your new repositories, which will suppress this warning, call:
2024-03-14T22:12:13.1779195Z hint: 
2024-03-14T22:12:13.1781307Z hint:  git config --global init.defaultBranch <name>
2024-03-14T22:12:13.1782764Z hint: 
2024-03-14T22:12:13.1784370Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-03-14T22:12:13.1786535Z hint: 'development'. The just-created branch can be renamed via this command:
2024-03-14T22:12:13.1787923Z hint: 
2024-03-14T22:12:13.1789337Z hint:  git branch -m <name>
2024-03-14T22:12:13.1790930Z Initialized empty Git repository in /home/runner/work/cm/cm/gitstream/cm/.git/
2024-03-14T22:12:13.1797165Z [command]/usr/bin/git remote add origin https://github.com/myorganization/cm
2024-03-14T22:12:13.1839597Z ##[endgroup]
2024-03-14T22:12:13.1842645Z ##[group]Disabling automatic garbage collection
2024-03-14T22:12:13.1844445Z [command]/usr/bin/git config --local gc.auto 0
2024-03-14T22:12:13.1883316Z ##[endgroup]
2024-03-14T22:12:13.1884850Z ##[group]Setting up auth
2024-03-14T22:12:13.1889527Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-03-14T22:12:13.1929745Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-14T22:12:13.2180860Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-03-14T22:12:13.2220638Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-14T22:12:13.2476790Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-03-14T22:12:13.2522393Z ##[endgroup]
2024-03-14T22:12:13.2524004Z ##[group]Fetching the repository
2024-03-14T22:12:13.2532563Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/main*:refs/remotes/origin/main* +refs/tags/main*:refs/tags/main*
2024-03-14T22:12:13.6773471Z remote: Enumerating objects: 7, done.        
2024-03-14T22:12:13.6783769Z remote: Counting objects:  14% (1/7)        
2024-03-14T22:12:13.6796286Z remote: Counting objects:  28% (2/7)        
2024-03-14T22:12:13.6797845Z remote: Counting objects:  42% (3/7)        
2024-03-14T22:12:13.6799256Z remote: Counting objects:  57% (4/7)        
2024-03-14T22:12:13.6800760Z remote: Counting objects:  71% (5/7)        
2024-03-14T22:12:13.6801830Z remote: Counting objects:  85% (6/7)        
2024-03-14T22:12:13.6803093Z remote: Counting objects: 100% (7/7)        
2024-03-14T22:12:13.6804114Z remote: Counting objects: 100% (7/7), done.        
2024-03-14T22:12:13.6805503Z remote: Compressing objects:  20% (1/5)        
2024-03-14T22:12:13.6806535Z remote: Compressing objects:  40% (2/5)        
2024-03-14T22:12:13.6807783Z remote: Compressing objects:  60% (3/5)        
2024-03-14T22:12:13.6808993Z remote: Compressing objects:  80% (4/5)        
2024-03-14T22:12:13.6810541Z remote: Compressing objects: 100% (5/5)        
2024-03-14T22:12:13.6811588Z remote: Compressing objects: 100% (5/5), done.        
2024-03-14T22:12:13.6813609Z remote: Total 7 (delta 0), reused 7 (delta 0), pack-reused 0        
2024-03-14T22:12:13.6869240Z From https://github.com/myorganization/cm
2024-03-14T22:12:13.6870493Z  * [new branch]      main       -> origin/main
2024-03-14T22:12:13.6893391Z ##[endgroup]
2024-03-14T22:12:13.6894971Z ##[group]Determining the checkout info
2024-03-14T22:12:13.6899536Z [command]/usr/bin/git branch --list --remote origin/main
2024-03-14T22:12:13.6931772Z   origin/main
2024-03-14T22:12:13.6938493Z ##[endgroup]
2024-03-14T22:12:13.6939779Z ##[group]Checking out the ref
2024-03-14T22:12:13.6947109Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-03-14T22:12:13.6994556Z Switched to a new branch 'main'
2024-03-14T22:12:13.6999047Z branch 'main' set up to track 'origin/main'.
2024-03-14T22:12:13.7005787Z ##[endgroup]
2024-03-14T22:12:13.7051209Z [command]/usr/bin/git log -1 --format='%H'
2024-03-14T22:12:13.7084530Z 'f22a39cc4fb01d0ef4f4ecb5660252cc14853147'
2024-03-14T22:12:13.7195884Z ##[group]Run env_file=env.user
2024-03-14T22:12:13.7196433Z env_file=env.user
2024-03-14T22:12:13.7196877Z touch $env_file
2024-03-14T22:12:13.7197313Z for var in $(env | cut -d "=" -f 1); do
2024-03-14T22:12:13.7197769Z   value="${!var}"
2024-03-14T22:12:13.7198210Z   echo "$var=$value" >> "$env_file"
2024-03-14T22:12:13.7198836Z done
2024-03-14T22:12:13.7199262Z docker pull gitstream/rules-engine:latest
2024-03-14T22:12:13.7222326Z docker run --env-file $env_file -v $(pwd)/gitstream:/code -e HEAD_REF=$'upstream/prs-without-tests-label' -e BASE_REF=$'main' -e CLIENT_PAYLOAD="{\"repoPath\":\".github/workflows/gitstream.yml\",\"gitstreamGatesCheckId\":22682338476,\"repo\":\"cm\",\"owner\":\"myorganization\",\"branch\":\"prs-without-tests-label\",\"installationId\":47548319,\"pullRequestNumber\":1,\"headSha\":\"b29fea19e8f846aaadcd878ebb3e7dccd8236b5b\",\"baseRef\":\"main\",\"baseSha\":\"f22a39cc4fb01d0ef4f4ecb5660252cc14853147\",\"visibility\":\"private\",\"triggeredBy\":\"cgardner-rootstock\",\"triggeredPREvent\":\"synchronize\",\"source\":\"github\",\"env\":\"prod\",\"creator\":\"cgardner-rootstock\",\"analytics_url\":\"https://z0ievfnzr5.execute-api.us-west-1.amazonaws.com/prod/analytics\",\"analyticsHttpApiUrl\":\"https://api.amplitude.com/2/httpapi\",\"segmentServiceUrl\":\"https://api.segment.io\",\"prContext\":{\"isFullyInstalled\":false,\"title\":\"feat: added automation to label missing-tests\",\"approvals\":[],\"requested_changes\":[],\"author\":\"cgardner-rootstock\",\"description\":\"\",\"checks\":[],\"created_at\":\"2024-03-08T17:27:42Z\",\"draft\":false,\"mergeable\":true,\"labels\":[\"cm-changes\"],\"reviewers\":[],\"status\":\"open\",\"updated_at\":\"2024-03-14T22:11:32Z\",\"assignees\":[],\"contributors\":[],\"paths\":[],\"author_teams\":[\"DevOps\"],\"author_is_org_member\":true,\"comments\":[{\"commenter\":\"gitstream-cm\",\"content\":\"YGBgIAogLzpcIGdpdFN0cmVhbSBEUlkgUlVOIAogYGBgIAoqKmdpdHN0cmVhbS9lc3RpbWF0ZWRfdGltZV90b19yZXZpZXcqKiAKIArigKIgYWRkIGxhYmVsIGAxIG1pbiByZXZpZXdgIHdpdGggY29sb3IgYDBlOGExNmAgCgogClRvIGFjdGl2YXRlIHRoZXNlIGFjdGlvbnMgLSBtZXJnZSB0aGlzIFBSIGludG8gdGhlIG1haW4gYnJhbmNoIApfX19fX18gCkxlYXJuIG1vcmUgb24gdGhlIFtnaXRTdHJlYW0gRG9jc10oaHR0cHM6Ly9kb2NzLmdpdHN0cmVhbS5jbS8pIApTZWUgeW91ciBhdXRvbWF0aW9ucyBvbiB0aGUgW2dpdFN0cmVhbSBhcHBdKGh0dHBzOi8vYXBwLmdpdHN0cmVhbS5jbSkgCkNyZWF0ZSBuZXcgcnVsZXMgb24gdGhlIFtnaXRTdGVhbSBwbGF5Z3JvdW5kXShodHRwczovL2FwcC5naXRzdHJlYW0uY20vcGxheWdyb3VuZCkKCjxhdXRvbWF0aW9uIGlkPSJydWxlc19maWxlc19jaGFuZ2VzIi8+\",\"created_at\":\"2024-03-08T18:10:59Z\",\"id\":1986173850}],\"reviews\":[],\"conversations\":[],\"unresolved_threads\":0,\"number\":1,\"url\":\"https://github.com/myorganization/cm/pull/1\",\"isPrivate\":true,\"target\":\"main\",\"source\":\"prs-without-tests-label\"},\"hasCmRepo\":true,\"providerRepoId\":760907004,\"isNewCommit\":true,\"trigger_id\":\"e9f4e86f-8b3b-4111-9d27-216ef06b32b2\",\"headHttpUrl\":\"https://github.com/myorganization/cm\",\"explicitTriggers\":{\"gitstream.cm\":{\"shouldBeTriggered\":true}},\"webhookEventName\":\"pull_request_synchronize\",\"webhookEventNames\":{\"pull_request_synchronize\":true},\"githubToken\":\"***\",\"eventAction\":\"synchronize\",\"mergeCommitSha\":\"\",\"cmRepoId\":760907004,\"cmRepo\":\"cm\",\"cmRepoRef\":\"main\"}" -e RULES_RESOLVER_URL=https://qembo8hwr6.execute-api.us-west-1.amazonaws.com/prod/api/v1/gitstream/resolve -e RULES_RESOLVER_TOKEN=*** -e DEBUG_MODE= gitstream/rules-engine
2024-03-14T22:12:13.7267685Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-14T22:12:13.7268199Z ##[endgroup]
2024-03-14T22:12:14.5801816Z latest: Pulling from gitstream/rules-engine
2024-03-14T22:12:14.5815098Z 1207c741d8c9: Pulling fs layer
2024-03-14T22:12:14.5821087Z c44c11c253b8: Pulling fs layer
2024-03-14T22:12:14.5822287Z b70131bf260b: Pulling fs layer
2024-03-14T22:12:14.5824363Z 8483f35fc686: Pulling fs layer
2024-03-14T22:12:14.5825803Z ff923dfc6314: Pulling fs layer
2024-03-14T22:12:14.5826674Z f634127c6038: Pulling fs layer
2024-03-14T22:12:14.5872640Z fb8d10c12ace: Pulling fs layer
2024-03-14T22:12:14.5876486Z ce77d61d8f93: Pulling fs layer
2024-03-14T22:12:14.5877268Z 15ad35ca202b: Pulling fs layer
2024-03-14T22:12:14.5877924Z a3e2b8f874f7: Pulling fs layer
2024-03-14T22:12:14.5878492Z ebae7854dc66: Pulling fs layer
2024-03-14T22:12:14.5879254Z f634127c6038: Waiting
2024-03-14T22:12:14.5879835Z fb8d10c12ace: Waiting
2024-03-14T22:12:14.5880514Z ce77d61d8f93: Waiting
2024-03-14T22:12:14.5881150Z 15ad35ca202b: Waiting
2024-03-14T22:12:14.5881720Z a3e2b8f874f7: Waiting
2024-03-14T22:12:14.5882249Z ebae7854dc66: Waiting
2024-03-14T22:12:14.5882791Z 8483f35fc686: Waiting
2024-03-14T22:12:14.5883168Z ff923dfc6314: Waiting
2024-03-14T22:12:14.8406260Z 1207c741d8c9: Verifying Checksum
2024-03-14T22:12:14.8413786Z 1207c741d8c9: Download complete
2024-03-14T22:12:14.8932725Z b70131bf260b: Verifying Checksum
2024-03-14T22:12:14.8940633Z b70131bf260b: Download complete
2024-03-14T22:12:15.0616889Z 1207c741d8c9: Pull complete
2024-03-14T22:12:15.1022511Z 8483f35fc686: Verifying Checksum
2024-03-14T22:12:15.1024012Z 8483f35fc686: Download complete
2024-03-14T22:12:15.1172219Z ff923dfc6314: Verifying Checksum
2024-03-14T22:12:15.1172714Z ff923dfc6314: Download complete
2024-03-14T22:12:15.1348849Z c44c11c253b8: Verifying Checksum
2024-03-14T22:12:15.1350044Z c44c11c253b8: Download complete
2024-03-14T22:12:15.3033530Z f634127c6038: Verifying Checksum
2024-03-14T22:12:15.3034255Z f634127c6038: Download complete
2024-03-14T22:12:15.3211380Z ce77d61d8f93: Verifying Checksum
2024-03-14T22:12:15.3215034Z ce77d61d8f93: Download complete
2024-03-14T22:12:15.6638481Z fb8d10c12ace: Verifying Checksum
2024-03-14T22:12:15.6639336Z fb8d10c12ace: Download complete
2024-03-14T22:12:15.8467888Z a3e2b8f874f7: Verifying Checksum
2024-03-14T22:12:15.8469859Z a3e2b8f874f7: Download complete
2024-03-14T22:12:15.8967719Z ebae7854dc66: Verifying Checksum
2024-03-14T22:12:15.8969432Z ebae7854dc66: Download complete
2024-03-14T22:12:15.9879376Z 15ad35ca202b: Verifying Checksum
2024-03-14T22:12:15.9881710Z 15ad35ca202b: Download complete
2024-03-14T22:12:17.3425850Z c44c11c253b8: Pull complete
2024-03-14T22:12:17.7925709Z b70131bf260b: Pull complete
2024-03-14T22:12:17.8091328Z 8483f35fc686: Pull complete
2024-03-14T22:12:17.8401432Z ff923dfc6314: Pull complete
2024-03-14T22:12:17.8498389Z f634127c6038: Pull complete
2024-03-14T22:12:18.1945237Z fb8d10c12ace: Pull complete
2024-03-14T22:12:18.2095567Z ce77d61d8f93: Pull complete
2024-03-14T22:12:23.0031791Z 15ad35ca202b: Pull complete
2024-03-14T22:12:24.5786490Z a3e2b8f874f7: Pull complete
2024-03-14T22:12:24.7003472Z ebae7854dc66: Pull complete
2024-03-14T22:12:24.7049105Z Digest: sha256:55c9fa2ee7249be2980a95e2ec03c30ef85009b23a13381983efc44d16b33b17
2024-03-14T22:12:24.7065620Z Status: Downloaded newer image for gitstream/rules-engine:latest
2024-03-14T22:12:24.7092319Z docker.io/gitstream/rules-engine:latest
2024-03-14T22:12:25.3561981Z 
2024-03-14T22:12:25.3562833Z > gitstream-rules-engine@1.0.0 start
2024-03-14T22:12:25.3563524Z > node src/app.js
2024-03-14T22:12:25.3563767Z 
2024-03-14T22:12:25.4154069Z (node:17) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2024-03-14T22:12:25.4156191Z (Use `node --trace-warnings ...` to show where the warning was created)
2024-03-14T22:12:25.8017821Z Running gitstream-rules-engine 1.3.117
2024-03-14T22:12:25.8077062Z PR: myorganization/cm/pull/1
2024-03-14T22:12:25.8077993Z commit: b29fea19e8f846aaadcd878ebb3e7dccd8236b5b
2024-03-14T22:12:25.8079082Z Loading run data...
2024-03-14T22:12:25.8562567Z Parsing cm files...
2024-03-14T22:12:26.3458972Z Failed to parse cm file {
2024-03-14T22:12:26.3460547Z   ruleFile: 'gitstream.cm',
2024-03-14T22:12:26.3462037Z   error: '(unknown path)\n  TypeError: _formatInputToList.map is not a function'
2024-03-14T22:12:26.3463411Z }
2024-03-14T22:12:26.3501821Z ##[error]{
  "message": "Error in gitstream.cm:\n (unknown path)\n  TypeError: _formatInputToList.map is not a function",
  "owner": "myorganization",
  "repo": "cm",
  "branch": "prs-without-tests-label"
}
2024-03-14T22:12:26.4946492Z ##[error]Process completed with exit code 60.
2024-03-14T22:12:26.5091934Z Post job cleanup.
2024-03-14T22:12:26.5153439Z Post job cleanup.
2024-03-14T22:12:26.6007218Z [command]/usr/bin/git version
2024-03-14T22:12:26.6055550Z git version 2.43.2
2024-03-14T22:12:26.6099505Z Temporarily overriding HOME='/home/runner/work/_temp/daea2af5-8a05-4b96-ae7c-d10364ca3bdb' before making global git config changes
2024-03-14T22:12:26.6101726Z Adding repository directory to the temporary git global config as a safe directory
2024-03-14T22:12:26.6106612Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cm/cm/gitstream/cm
2024-03-14T22:12:26.6151495Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-03-14T22:12:26.6194062Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-14T22:12:26.6452524Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-03-14T22:12:26.6482311Z http.https://github.com/.extraheader
2024-03-14T22:12:26.6495424Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-03-14T22:12:26.6577005Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-14T22:12:26.7046035Z Post job cleanup.
2024-03-14T22:12:26.7920899Z [command]/usr/bin/git version
2024-03-14T22:12:26.7976777Z git version 2.43.2
2024-03-14T22:12:26.8020024Z Temporarily overriding HOME='/home/runner/work/_temp/91f4fe14-c88f-474f-96a5-9068d237f06a' before making global git config changes
2024-03-14T22:12:26.8022309Z Adding repository directory to the temporary git global config as a safe directory
2024-03-14T22:12:26.8027138Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/cm/cm/gitstream/repo
2024-03-14T22:12:26.8070392Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-03-14T22:12:26.8111583Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-03-14T22:12:26.8367649Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-03-14T22:12:26.8396955Z http.https://github.com/.extraheader
2024-03-14T22:12:26.8410441Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-03-14T22:12:26.8451150Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-03-14T22:12:26.8935206Z Cleaning up orphan processes
PavelLinearB commented 5 months ago

Hi @cgardner Thanks for reporting this issue. Thanks for letting us know about this issue!

gitStream is currently unable to handle complex variables in filter functions, causing errors with the {{ has.apex | some }} and {{ has.tests | nope }} conditions.

We are planning to fix this, but in the meantime, you can try a workaround by piping the filter to the variable itself:

    if:
      - {{ has.apex }}
      - {{ has.no_tests }}
...
...
...

has:
  apex:  {{ files | match(regex=r/.*(?<!Test)\.cls$/) | some }}
  no_tests: {{ files | match(regex=r/.*Test.*\.cls$/) | nope}}

Hope this helps for now! Let me know if you have any questions or need further assistance. Best, Pavel.

cgardner commented 5 months ago

@PavelLinearB, That was it. Thank you very much.