Outdated fixture path in package-recommendations workflow and check script

Author: johnnylemonnyCreated Sep 25, 2026Updated Sep 25, 2026
Labelsbug

Describe the bug

In commit bcedad0 (standardize backend organization), server/middlewares/similar-packages/fixtures.ts was renamed to server/middlewares/similar-packages/similar-packages.fixtures.ts.

However, the file path references in .github were not updated:

  1. In .github/workflows/package-recommendations.yml:9:

    yaml
    paths:
      - server/middlewares/similar-packages/fixtures.ts

    Because the file was renamed, this workflow never triggers on pull requests that modify curated package recommendations.

  2. In .github/scripts/check-recommendation-changes.mjs:13:

    javascript
    const fixturePath = 'server/middlewares/similar-packages/fixtures.ts'

    When check-curated-data executes or when the script is run locally against a base SHA, it fails immediately with: ENOENT: no such file or directory, open 'server/middlewares/similar-packages/fixtures.ts'

To Reproduce

Run the quality check script locally against a previous commit:

bash
node .github/scripts/check-recommendation-changes.mjs HEAD~1

Output:

Error: ENOENT: no such file or directory, open 'server/middlewares/similar-packages/fixtures.ts'

Expected behavior

  • .github/workflows/package-recommendations.yml should track server/middlewares/similar-packages/similar-packages.fixtures.ts.
  • .github/scripts/check-recommendation-changes.mjs should read from server/middlewares/similar-packages/similar-packages.fixtures.ts.

Proposed fix

Update both paths to server/middlewares/similar-packages/similar-packages.fixtures.ts.

Happy to open a quick PR fixing both lines if helpful!