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

[BUG] changed-files error during run #875

Closed
3 tasks done
ozlotusflare opened this issue Dec 16, 2022 · 8 comments · Fixed by #950
Closed
3 tasks done

[BUG] changed-files error during run #875

ozlotusflare opened this issue Dec 16, 2022 · 8 comments · Fixed by #950
Labels
bug Something isn't working

Comments

@ozlotusflare
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

Hi everyone,
I updated action to latest version and from time to time I see these logs

/runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 189:   490 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 190:   528 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 191:   560 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 192:   596 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 193:   630 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 194:   668 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 195:   701 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 196:   736 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 197:   772 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"

and it skip modified file.
Now I got next:

changed-files
  Resolving repository path: /runner/_work/test.
  Retrieving changes between b553bfcafe64c0ee6f3e1f4a15bec6ac5abf3098 (master) → a017cfa4ab7934d79037cfc860719b05029c40e8 (update-actions-gh)
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 189:   490 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 190:   528 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 191:   560 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 192:   596 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 193:   630 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 194:   668 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 195:   701 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 196:   736 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 197:   772 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 91: echo: write error: Broken pipe
  Error: Process completed with exit code 1.

So, I don’t get it why it sometimes checks changed files sometimes skipped ..

To Reproduce

Created PR with modified file yaml file
My action config:

- name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v34
        with:
          files: |
            **/*.yaml
            **/*.yml

Do some changes in file and run actions, and repeat

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

Run without exceptions and track every time when file was changed

Relevant log output

...
a017cfa4ab7934d79037cfc860719b05029c40e8 (update-actions-gh)
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 189:   490 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 190:   528 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 191:   560 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 192:   596 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v34/get-changed-paths.sh: line 193:   630 Killed                  grep -x -E -f 
...

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ozlotusflare ozlotusflare added the bug Something isn't working label Dec 16, 2022
@jackton1
Copy link
Member

@ozlotusflare Can you enable debugging when posted logs as outlined here
Screenshot 2022-12-16 at 1 41 24 PM

@jackton1
Copy link
Member

@eltociear Closing this issue, for now since a new version has been released. Let me know if the issue persists and I can reopen the issue. I also recommend that you enable debugging and post the entire log output i.e including the checkout and the changed files actions steps

@ozlotusflare
Copy link
Author

Hi @jackton1, thank you for your reply, I checked new (35)version and still I have issues at the same place:
checkout output

##[debug]Evaluating condition for step: 'Run actions/checkout@v3'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run actions/checkout@v3
##[debug]Register post job cleanup for action: actions/checkout@v3
##[debug]Loading inputs
##[debug]Evaluating: github.repository
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'repository'
##[debug]=> 'test/test'
##[debug]Result: 'test/test'
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run actions/checkout@v3
##[debug]GITHUB_WORKSPACE = '/runner/_work/test'
##[debug]qualified repository = 'test/test'
##[debug]ref = 'refs/pull/30757/merge'
##[debug]commit = '9[2](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:2)42[3](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:3)887[4](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:4)7cc6fbdd38860[5](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:5)fac042af4f7309c29'
##[debug]clean = true
##[debug]fetch depth = 0
##[debug]lfs = false
##[debug]submodules = false
##[debug]recursive submodules = false
##[debug]GitHub Host URL = 
::add-matcher::/runner/_work/_actions/actions/checkout/v3/dist/problem-matcher.json
##[debug]Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
Syncing repository: test/test
::group::Getting Git version info
Getting Git version info
  Working directory is '/runner/_work/test'
  ##[debug]Getting git version
  /usr/bin/git version
  git version 2.38.2
  ##[debug]Set git useragent to: git/2.38.2 (github-actions-checkout)
  ::endgroup::
::add-mask::***
Temporarily overriding HOME='/runner/_work/_temp/5958c81c-50cc-4181-9d[6](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:6)b-5438b34868ef' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /runner/_work/test/
Deleting the contents of '/runner/_work/test/test'
::group::Initializing the repository
Initializing the repository
::group::Disabling automatic garbage collection
Disabling automatic garbage collection
::group::Setting up auth
Setting up auth
::group::Fetching the repository
Fetching the repository
::group::Determining the checkout info
Determining the checkout info
::group::Checking out the ref
Checking out the ref
  /usr/bin/git checkout --progress --force refs/remotes/pull/30[7](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:7)57/merge
  Note: switching to 'refs/remotes/pull/30757/merge'.
  
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by switching back to a branch.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -c with the switch command. Example:
  
    git switch -c <new-branch-name>
  
  Or undo this operation with:
  
    git switch -
  
  Turn off this advice by setting config variable advice.detachedHead to false
  
  HEAD is now at 92423[8](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:8)8747 Merge 82430c7340806a1ae0e6465b5f[9](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:9)c1e859409027e into 3f[12](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:12)b8b92c6375786ded1ab93e993e95945adfe7
  ::endgroup::
/usr/bin/git log -1 --format='%H'
'924[23](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:23)88747cc6fbdd[38](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:39)8605fac0[42](https://github.com/test/test/actions/runs/3731558811/jobs/6330010580#step:3:43)af4f7309c29'
##[debug]Unsetting HOME override
::remove-matcher owner=checkout-git::
##[debug]Removed matchers: 'checkout-git'
##[debug]Node Action run completed with exit code 0
##[debug]Save intra-action state isPost = true
##[debug]Save intra-action state setSafeDirectory = true
##[debug]Save intra-action state repositoryPath = /runner/_work/test
##[debug]Finishing: Run actions/checkout@v3

changed-files-debug

changed-files
  Resolving repository path: /runner/_work/test.
  Retrieving changes between 3f12b8b92c6375786ded1ab93e993e95945adfe7 (master) → 9242388747cc6fbdd388605fac042af4f7309c29 (update-actions-gh)
  /runner/_work/_actions/tj-actions/changed-files/v35/get-changed-paths.sh: line 185:   485 Killed                  grep -x -E -f "$INPUT_FILES_PATTERN_FILE"
  /runner/_work/_actions/tj-actions/changed-files/v35/get-changed-paths.sh: line 87: echo: write error: Broken pipe
  Error: Process completed with exit code 1.
  ##[debug]Finished: run
  ##[debug]Evaluating: steps.changed-files.outputs.added_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'added_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.copied_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'copied_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.deleted_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'deleted_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.modified_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'modified_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.renamed_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'renamed_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.all_old_new_renamed_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'all_old_new_renamed_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.type_changed_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'type_changed_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.unmerged_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'unmerged_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.unknown_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'unknown_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.all_changed_and_modified_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'all_changed_and_modified_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.all_changed_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'all_changed_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.any_changed
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'any_changed'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.only_changed
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'only_changed'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.other_changed_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'other_changed_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.all_modified_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'all_modified_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.any_modified
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'any_modified'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.only_modified
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'only_modified'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.other_modified_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'other_modified_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.any_deleted
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'any_deleted'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.only_deleted
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'only_deleted'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Evaluating: steps.changed-files.outputs.other_deleted_files
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=> Object
  ##[debug]......Evaluating String:
  ##[debug]......=> 'changed-files'
  ##[debug]....=> Object
  ##[debug]....Evaluating String:
  ##[debug]....=> 'outputs'
  ##[debug]..=> Object
  ##[debug]..Evaluating String:
  ##[debug]..=> 'other_deleted_files'
  ##[debug]=> null
  ##[debug]Result: null
  ##[debug]Finishing: Get changed files

Thank you!

@jackton1
Copy link
Member

@ozlotusflare Can you create a public repository which replicates the error you are having?
it would be helpful to fill in all the missing details like your workflow setup and the directory structure. Thanks

@ozlotusflare
Copy link
Author

Sure, I'll ping you out.

@AlbericTrancart
Copy link

AlbericTrancart commented Jan 17, 2023

@jackton1 I have a reproduction. It's not a simple barebones repo but it is an open source one so here we go: link to the failing pipeline

I tried to debug it without knowing this action, some greps are failing before the error because INPUT_FILES_PATTERN_FILE is not set. Not sure if it is the cause of the broken pipe but might be an issue.

We are using this action 3 other times in this pipeline and all 3 are okay and have the INPUT_FILES_PATTERN_FILE variable set

@AlbericTrancart
Copy link

@jackton1 I found the root cause. It is an error on my part, I was using a file pattern on a folder that doesn't exist (running the action with files: adage/** when the target folder was adage-front.
So now it's fixed on my side but it can be an improvement for the action to have a better error message in this case 🙂

@jackton1
Copy link
Member

jackton1 commented Jan 18, 2023

@AlbericTrancart Going forward you would get an error message that the patterns provided don't match any files which would prevent creating the INPUT_FILES_PATTERN_FILE.

This would mark the job as failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants