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

never ending check on nasty bash script #716

Open
judovana opened this issue Nov 14, 2024 · 0 comments
Open

never ending check on nasty bash script #716

judovana opened this issue Nov 14, 2024 · 0 comments

Comments

@judovana
Copy link

Describe the bug
The jscpd analyse of the https://github.com/judovana/temurin-build/blob/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh is never finished (https://github.com/adoptium/temurin-build/actions/runs/11775432014/job/32795868920?pr=4008)

   sudo  npm install -g jscpd
   npx jscpd -v compare-builds.sh 

Is deadlocking the same.

With a bit of playing I found the guilty part of
https://github.com/judovana/temurin-build/blob/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh#L394-L465 however checking that part alone do not cause infinite execution.

To Reproduce
Steps to reproduce the behaviour:

  1. wget https://raw.githubusercontent.com/judovana/temurin-build/907db529f3b22973aec895e672db8eec0842eb87/tooling/compare-builds.sh
  2. npx jscpd compare-builds.sh

Expected behavior
The analyse will finish in real time

Desktop (please complete the following information):

  • OS: fedora 39 and github actions
  • NodeJS Version: github actions and 10.8.2
  • jscpd version: github actions and 4.0.5
judovana added a commit to judovana/temurin-build that referenced this issue Feb 18, 2025
…ctions.sh

I was trying to refactor it to make
kucherenko/jscpd#716 happy, but without
success.
At the end I was moreover frustrated to revert all the refactoring to
slightly better as any inclusion of compare-builds-postfunctions.sh into
compare-builds.sh was leading to jscpd to deadlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant