Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

check-database-compatibility: Drop .py from script name.

Anders Kaseorg5a79ca251be0
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index be1462648d1..a30801463ea 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -152,11 +152,11 @@ jobs:
./tools/setup/generate_integration_bots_avatars.py --check-missing
./tools/ci/check-executables
- # Ban check-database-compatibility.py from transitively
+ # Ban check-database-compatibility from transitively
# relying on static/generated, because it might not be
# up-to-date at that point in upgrade-zulip-stage-2.
chmod 000 static/generated web/generated
- ./scripts/lib/check-database-compatibility.py
+ ./scripts/lib/check-database-compatibility
chmod 755 static/generated web/generated
- name: Run documentation and api tests
diff --git a/scripts/lib/check-database-compatibility.py b/scripts/lib/check-database-compatibility
similarity index 100%
rename from scripts/lib/check-database-compatibility.py
rename to scripts/lib/check-database-compatibility
diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2
index 72f6316a439..3a12e26c398 100755
--- a/scripts/lib/upgrade-zulip-stage-2
+++ b/scripts/lib/upgrade-zulip-stage-2
@@ -268,7 +268,7 @@ subprocess.check_call(
# downgrade.
if not args.skip_downgrade_check:
subprocess.check_call(
- [os.path.join(deploy_path, "scripts", "lib", "check-database-compatibility.py")],
+ [os.path.join(deploy_path, "scripts", "lib", "check-database-compatibility")],
preexec_fn=su_to_zulip,
)