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

Generate report on expected vs actual assets prior to release promotion #1596

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified setup/www/tools/promote/README.md
100644 → 100755
Empty file.
600 changes: 600 additions & 0 deletions setup/www/tools/promote/check_assets.js

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions setup/www/tools/promote/expected_assets/v10.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
docs/
docs/api/
node-{VERSION}-aix-ppc64.tar.gz
node-{VERSION}-darwin-x64.tar.gz
node-{VERSION}-darwin-x64.tar.xz
node-{VERSION}-headers.tar.gz
node-{VERSION}-headers.tar.xz
node-{VERSION}-linux-arm64.tar.gz
node-{VERSION}-linux-arm64.tar.xz
node-{VERSION}-linux-armv6l.tar.gz
node-{VERSION}-linux-armv6l.tar.xz
node-{VERSION}-linux-armv7l.tar.gz
node-{VERSION}-linux-armv7l.tar.xz
node-{VERSION}-linux-ppc64le.tar.gz
node-{VERSION}-linux-ppc64le.tar.xz
node-{VERSION}-linux-s390x.tar.gz
node-{VERSION}-linux-s390x.tar.xz
node-{VERSION}-linux-x64.tar.gz
node-{VERSION}-linux-x64.tar.xz
node-{VERSION}.pkg
node-{VERSION}-sunos-x64.tar.gz
node-{VERSION}-sunos-x64.tar.xz
node-{VERSION}.tar.gz
node-{VERSION}.tar.xz
node-{VERSION}-win-x64.7z
node-{VERSION}-win-x64.zip
node-{VERSION}-win-x86.7z
node-{VERSION}-win-x86.zip
node-{VERSION}-x64.msi
node-{VERSION}-x86.msi
win-x64/
win-x64/node.exe
win-x64/node.lib
win-x64/node_pdb.7z
win-x64/node_pdb.zip
win-x86/
win-x86/node.exe
win-x86/node.lib
win-x86/node_pdb.7z
win-x86/node_pdb.zip
40 changes: 40 additions & 0 deletions setup/www/tools/promote/expected_assets/v11.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
docs/
docs/api/
node-{VERSION}-aix-ppc64.tar.gz
node-{VERSION}-darwin-x64.tar.gz
node-{VERSION}-darwin-x64.tar.xz
node-{VERSION}-headers.tar.gz
node-{VERSION}-headers.tar.xz
node-{VERSION}-linux-arm64.tar.gz
node-{VERSION}-linux-arm64.tar.xz
node-{VERSION}-linux-armv6l.tar.gz
node-{VERSION}-linux-armv6l.tar.xz
node-{VERSION}-linux-armv7l.tar.gz
node-{VERSION}-linux-armv7l.tar.xz
node-{VERSION}-linux-ppc64le.tar.gz
node-{VERSION}-linux-ppc64le.tar.xz
node-{VERSION}-linux-s390x.tar.gz
node-{VERSION}-linux-s390x.tar.xz
node-{VERSION}-linux-x64.tar.gz
node-{VERSION}-linux-x64.tar.xz
node-{VERSION}.pkg
node-{VERSION}-sunos-x64.tar.gz
node-{VERSION}-sunos-x64.tar.xz
node-{VERSION}.tar.gz
node-{VERSION}.tar.xz
node-{VERSION}-win-x64.7z
node-{VERSION}-win-x64.zip
node-{VERSION}-win-x86.7z
node-{VERSION}-win-x86.zip
node-{VERSION}-x64.msi
node-{VERSION}-x86.msi
win-x64/
win-x64/node.exe
win-x64/node.lib
win-x64/node_pdb.7z
win-x64/node_pdb.zip
win-x86/
win-x86/node.exe
win-x86/node.lib
win-x86/node_pdb.7z
win-x86/node_pdb.zip
46 changes: 46 additions & 0 deletions setup/www/tools/promote/expected_assets/v6.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
docs/
docs/api/
node-{VERSION}-aix-ppc64.tar.gz
node-{VERSION}-darwin-x64.tar.gz
node-{VERSION}-darwin-x64.tar.xz
node-{VERSION}-headers.tar.gz
node-{VERSION}-headers.tar.xz
node-{VERSION}-linux-arm64.tar.gz
node-{VERSION}-linux-arm64.tar.xz
node-{VERSION}-linux-armv6l.tar.gz
node-{VERSION}-linux-armv6l.tar.xz
node-{VERSION}-linux-armv7l.tar.gz
node-{VERSION}-linux-armv7l.tar.xz
node-{VERSION}-linux-ppc64le.tar.gz
node-{VERSION}-linux-ppc64le.tar.xz
node-{VERSION}-linux-ppc64.tar.gz
node-{VERSION}-linux-ppc64.tar.xz
node-{VERSION}-linux-s390x.tar.gz
node-{VERSION}-linux-s390x.tar.xz
node-{VERSION}-linux-x64.tar.gz
node-{VERSION}-linux-x64.tar.xz
node-{VERSION}-linux-x86.tar.gz
node-{VERSION}-linux-x86.tar.xz
node-{VERSION}.pkg
node-{VERSION}-sunos-x64.tar.gz
node-{VERSION}-sunos-x64.tar.xz
node-{VERSION}-sunos-x86.tar.gz
node-{VERSION}-sunos-x86.tar.xz
node-{VERSION}.tar.gz
node-{VERSION}.tar.xz
node-{VERSION}-win-x64.7z
node-{VERSION}-win-x64.zip
node-{VERSION}-win-x86.7z
node-{VERSION}-win-x86.zip
node-{VERSION}-x64.msi
node-{VERSION}-x86.msi
win-x64/
win-x64/node.exe
win-x64/node.lib
win-x64/node_pdb.7z
win-x64/node_pdb.zip
win-x86/
win-x86/node.exe
win-x86/node.lib
win-x86/node_pdb.7z
win-x86/node_pdb.zip
44 changes: 44 additions & 0 deletions setup/www/tools/promote/expected_assets/v8.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
docs/
docs/api/
node-{VERSION}-aix-ppc64.tar.gz
node-{VERSION}-darwin-x64.tar.gz
node-{VERSION}-darwin-x64.tar.xz
node-{VERSION}-headers.tar.gz
node-{VERSION}-headers.tar.xz
node-{VERSION}-linux-arm64.tar.gz
node-{VERSION}-linux-arm64.tar.xz
node-{VERSION}-linux-armv6l.tar.gz
node-{VERSION}-linux-armv6l.tar.xz
node-{VERSION}-linux-armv7l.tar.gz
node-{VERSION}-linux-armv7l.tar.xz
node-{VERSION}-linux-ppc64le.tar.gz
node-{VERSION}-linux-ppc64le.tar.xz
node-{VERSION}-linux-s390x.tar.gz
node-{VERSION}-linux-s390x.tar.xz
node-{VERSION}-linux-x64.tar.gz
node-{VERSION}-linux-x64.tar.xz
node-{VERSION}-linux-x86.tar.gz
node-{VERSION}-linux-x86.tar.xz
node-{VERSION}.pkg
node-{VERSION}-sunos-x64.tar.gz
node-{VERSION}-sunos-x64.tar.xz
node-{VERSION}-sunos-x86.tar.gz
node-{VERSION}-sunos-x86.tar.xz
node-{VERSION}.tar.gz
node-{VERSION}.tar.xz
node-{VERSION}-win-x64.7z
node-{VERSION}-win-x64.zip
node-{VERSION}-win-x86.7z
node-{VERSION}-win-x86.zip
node-{VERSION}-x64.msi
node-{VERSION}-x86.msi
win-x64/
win-x64/node.exe
win-x64/node.lib
win-x64/node_pdb.7z
win-x64/node_pdb.zip
win-x86/
win-x86/node.exe
win-x86/node.lib
win-x86/node_pdb.7z
win-x86/node_pdb.zip
12 changes: 6 additions & 6 deletions setup/www/tools/promote/promote_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ dirmatch=$test_dirmatch

. ${__dirname}/_promote.sh $site

srcdir=$v8_canary_srcdir
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shuffle is just matching the files here with what's on the server, there's only a difference in order of operations, nothing important

dstdir=$v8_canary_dstdir
dirmatch=$v8_canary_dirmatch

. ${__dirname}/_promote.sh $site

srcdir=$chakracore_nightly_srcdir
dstdir=$chakracore_nightly_dstdir
dirmatch=$chakracore_nightly_dirmatch
Expand All @@ -54,9 +60,3 @@ dstdir=$chakracore_release_dstdir
dirmatch=$chakracore_release_dirmatch

. ${__dirname}/_promote.sh $site

srcdir=$v8_canary_srcdir
dstdir=$v8_canary_dstdir
dirmatch=$v8_canary_dirmatch

. ${__dirname}/_promote.sh $site
21 changes: 18 additions & 3 deletions setup/www/tools/promote/promote_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ srcdir=$release_srcdir
dstdir=$release_dstdir
dirmatch=$release_dirmatch

. ${__dirname}/_promote.sh $site $2

nodejs-latest-linker /home/dist/${site}/release/ /home/dist/${site}/docs/
node --no-warnings /home/staging/tools/promote/check_assets.js $srcdir/$2 $dstdir/$2

while true; do
echo -n "Are you sure you want to promote the $2 assets? [y/n] "
yorn=""
read yorn

if [ "X${yorn}" == "Xn" ]; then
echo "Bailing out ..."
exit 1
fi

if [ "X${yorn}" == "Xy" ]; then
. ${__dirname}/_promote.sh $site $2
nodejs-latest-linker /home/dist/${site}/release/ /home/dist/${site}/docs/
break
fi
done