From f858dc5b5b44b431c2905a2882876c7d46e2292f Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Mon, 22 May 2023 10:22:10 +0200 Subject: [PATCH] tools: add debug logs PR-URL: https://github.com/nodejs/node/pull/48060 Reviewed-By: Ruy Adorno Reviewed-By: Richard Lau Reviewed-By: Deokjin Kim Reviewed-By: Darshan Sen Reviewed-By: Mestery Reviewed-By: Luigi Pinca --- tools/dep_updaters/update-ada.sh | 2 ++ tools/dep_updaters/update-eslint.sh | 2 ++ tools/dep_updaters/update-libuv.sh | 2 ++ tools/dep_updaters/update-ngtcp2.sh | 2 ++ tools/dep_updaters/update-postject.sh | 2 ++ tools/dep_updaters/update-simdutf.sh | 2 ++ 6 files changed, 12 insertions(+) diff --git a/tools/dep_updaters/update-ada.sh b/tools/dep_updaters/update-ada.sh index ff4b9001d37e59..a9aa64731dc344 100755 --- a/tools/dep_updaters/update-ada.sh +++ b/tools/dep_updaters/update-ada.sh @@ -17,6 +17,8 @@ EOF CURRENT_VERSION=$(grep "#define ADA_VERSION" "$DEPS_DIR/ada/ada.h" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p") +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because ada is on the latest version." exit 0 diff --git a/tools/dep_updaters/update-eslint.sh b/tools/dep_updaters/update-eslint.sh index b3025bb8ff9e7e..95aba45397bd4a 100755 --- a/tools/dep_updaters/update-eslint.sh +++ b/tools/dep_updaters/update-eslint.sh @@ -16,6 +16,8 @@ NPM="$ROOT/deps/npm/bin/npm-cli.js" NEW_VERSION=$("$NODE" "$NPM" view eslint dist-tags.latest) CURRENT_VERSION=$("$NODE" -p "require('./tools/node_modules/eslint/package.json').version") +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because ESlint is on the latest version." exit 0 diff --git a/tools/dep_updaters/update-libuv.sh b/tools/dep_updaters/update-libuv.sh index a7ab4de930fc41..b679d935a91431 100755 --- a/tools/dep_updaters/update-libuv.sh +++ b/tools/dep_updaters/update-libuv.sh @@ -24,6 +24,8 @@ CURRENT_SUFFIX_VERSION=$(grep "#define UV_VERSION_SUFFIX" "$VERSION_H" | sed -n SUFFIX_STRING=$([ "$CURRENT_IS_RELEASE" = 1 ] || [ -z "$CURRENT_SUFFIX_VERSION" ] && echo "" || echo "-$CURRENT_SUFFIX_VERSION") CURRENT_VERSION="$CURRENT_MAJOR_VERSION.$CURRENT_MINOR_VERSION.$CURRENT_PATCH_VERSION$SUFFIX_STRING" +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because libuv is on the latest version." exit 0 diff --git a/tools/dep_updaters/update-ngtcp2.sh b/tools/dep_updaters/update-ngtcp2.sh index bfc8bf64f4b107..0e7d43cb4ce0d7 100755 --- a/tools/dep_updaters/update-ngtcp2.sh +++ b/tools/dep_updaters/update-ngtcp2.sh @@ -20,6 +20,8 @@ NGTCP2_VERSION_H="$DEPS_DIR/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h" CURRENT_VERSION=$(grep "#define NGTCP2_VERSION" "$NGTCP2_VERSION_H" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p") +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because ngtcp2 is on the latest version." exit 0 diff --git a/tools/dep_updaters/update-postject.sh b/tools/dep_updaters/update-postject.sh index f7a63ce1816cf9..be7b85c2247ae0 100755 --- a/tools/dep_updaters/update-postject.sh +++ b/tools/dep_updaters/update-postject.sh @@ -15,6 +15,8 @@ NPM="$ROOT/deps/npm/bin/npm-cli.js" NEW_VERSION=$("$NODE" "$NPM" view postject dist-tags.latest) CURRENT_VERSION=$("$NODE" -p "require('./test/fixtures/postject-copy/node_modules/postject/package.json').version") +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because Postject is on the latest version." exit 0 diff --git a/tools/dep_updaters/update-simdutf.sh b/tools/dep_updaters/update-simdutf.sh index d9e97cb21e4e60..dba4ba49c62516 100755 --- a/tools/dep_updaters/update-simdutf.sh +++ b/tools/dep_updaters/update-simdutf.sh @@ -16,6 +16,8 @@ EOF )" CURRENT_VERSION=$(grep "#define SIMDUTF_VERSION" "$DEPS_DIR/simdutf/simdutf.h" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p") +echo "Comparing $NEW_VERSION with $CURRENT_VERSION" + if [ "$NEW_VERSION" = "$CURRENT_VERSION" ]; then echo "Skipped because simdutf is on the latest version." exit 0