From 26b06b76eaf39b5724039eec8078db7a59108499 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Mon, 29 May 2023 13:21:57 +0900 Subject: [PATCH 1/2] Revert "Bump renovate from 34.160.0 to 35.98.4" This reverts commit 26915612360c2860239197289c2f1c1b60e6e70d. A git bisect found this commit to be the source of the issue where the lock file could not be updated. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4dfcd746e..3573bf146b 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "react-router-dom": "6.11.2", "react-spring": "9.7.1", "regenerator-runtime": "0.13.11", - "renovate": "^35.98.4", + "renovate": "^34.159.2", "sharp": "0.32.1", "stylelint": "15.6.2", "stylelint-config-css-modules": "4.2.0", From f345a19a8f1c9201393cdc9be23b1d9c93860a7b Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Mon, 29 May 2023 13:23:36 +0900 Subject: [PATCH 2/2] Add an example bisection file. --- bisect.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 bisect.sh diff --git a/bisect.sh b/bisect.sh new file mode 100755 index 0000000000..787c1da7a4 --- /dev/null +++ b/bisect.sh @@ -0,0 +1,37 @@ +#! /usr/bin/env bash + +CANNOT_BE_TESTED=125 +GOOD=0 +BAD=1 + +echo "Testing to see if renovate config is already broken..." + +if ! bazel test //:validate_renovate_config_test; then + echo "Renovate config appears already broken, striking off this commit." + exit $CANNOT_BE_TESTED +fi + +echo "force update the lockfile..." +if ! npm run pnpm i; then + echo "Failed to update lockfile." + exit $CANNOT_BE_TESTED +fi + +echo "See if it breaks..." + +EXIT_CODE=$CANNOT_BE_TESTED + +if bazel test //:validate_renovate_config_test; then + echo "Pass." + EXIT_CODE=$GOOD + else + + echo "Fail." + EXIT_CODE=$BAD +fi + +echo "Cleaning up..." + +git reset --hard + +exit $EXIT_CODE