design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Prevent automatic PRs from creating unwanted files

Open night-jellyfish opened this issue 1 year ago • 2 comments

Describe the bug

In several recent automated PRs from the design system, it's included files I don't think are supposed to be part of the upgrade. It's attempted to create a new folder called client@tmp/durable-${sha} with the following files:

  • jenkins-log.txt
  • script.sh
  • script.sh.copy

To Reproduce

I'm not able to re-create this on my own, but here are some examples:

  1. https://github.cms.gov/CMS-WDS/scout/pull/1301/files
  2. https://github.cms.gov/CMS-WDS/scout/pull/1237/files
  3. https://github.cms.gov/CMS-WDS/scout/pull/1227/files

Expected behavior

I expect the automated PRs to only contain changes that are expected to be part of the upgrade.

Additional context

I am guessing this automation is controlled by the design system - this could be a mistaken assumption.

night-jellyfish avatar Mar 19 '25 00:03 night-jellyfish

We'll look into this. Looks like one of the shell scripts is for handling the upgrade. I think most folks do the upgrades manually, and don't end up using these pull requests, so we can maybe get rid of these files.

jack-ryan-nava-pbc avatar Mar 19 '25 01:03 jack-ryan-nava-pbc

Thank you for taking a look!

We did end up doing them manually, as we had git conflicts due to other recent changes we made in the package-lock.json.

However, merging the automated PRs would mean permanently adding these files to the repo, meaning we'd have a new folder every time we merged an automated PR (due to the use of the sha in the directory's name). This would have prevented me from merging the automated PR even without the git conflict.

night-jellyfish avatar Mar 20 '25 19:03 night-jellyfish