From a95ceb51a23ae33c00b3a99224143c609b1b3eb3 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 12 Mar 2024 22:04:55 +0000 Subject: [PATCH] Release fix pinning slow-tests.json (#121746) Apply release changes script adds version to SLOW_TESTS_FILE which should not change Test: ``` SLOW_VER=test sed -i -e s#/slow-tests.json#"/slow-tests.json?versionId=${SLOW_VER}"# tools/stats/import_test_stats.py ``` Output: ``` SLOW_TESTS_FILE = ".pytorch-slow-tests.json" ... url = "https://ossci-metrics.s3.amazonaws.com/slow-tests.json?versionId=test" ``` related to: https://github.com/pytorch/pytorch/pull/121726 Pull Request resolved: https://github.com/pytorch/pytorch/pull/121746 Approved by: https://github.com/huydhn --- scripts/release/apply-release-changes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release/apply-release-changes.sh b/scripts/release/apply-release-changes.sh index 54ddf85992a..9c5c96831ce 100755 --- a/scripts/release/apply-release-changes.sh +++ b/scripts/release/apply-release-changes.sh @@ -50,7 +50,8 @@ SLOW_VER=$(aws s3api list-object-versions --bucket ossci-metrics --prefix slow-t DISABLED_TESTS_VER=$(aws s3api list-object-versions --bucket ossci-metrics --prefix disabled-tests-condensed.json --query 'Versions[?IsLatest].[VersionId]' --output text) sed -i -e s#unstable-jobs.json#"unstable-jobs.json?versionId=${UNSTABLE_VER}"# .github/scripts/filter_test_configs.py sed -i -e s#disabled-jobs.json#"disabled-jobs.json?versionId=${DISABLED_VER}"# .github/scripts/filter_test_configs.py -sed -i -e s#slow-tests.json#"slow-tests.json?versionId=${SLOW_VER}"# tools/stats/import_test_stats.py +# please note we want to match slow-tests.json not .pytorch-slow-tests.json hence "/" is needed here +sed -i -e s#/slow-tests.json#"/slow-tests.json?versionId=${SLOW_VER}"# tools/stats/import_test_stats.py sed -i -e s#disabled-tests-condensed.json#"disabled-tests-condensed.json?versionId=${DISABLED_TESTS_VER}"# tools/stats/import_test_stats.py # Optional git commit -m "[RELEASE-ONLY CHANGES] Branch Cut for Release {RELEASE_VERSION}"