test_release_gate.py
Source file: scripts/test_release_gate.py
Module: scripts
Size: 147 lines
SHA-256: 53811d2fd8b5c926dba5cfa4a15ba7deb321ede82572a7519fa8c3a9aedfc3c4
Responsibility
Coordinates release checks; scripts are not evidence of actual staging or device operation.
Declared entry points
write— source line 17.ReleaseGateTests— source line 22.setUp— source line 23.appView— source line 37.route— source line 38.run_gate— source line 51.test_clean_separated_source_and_export_pass— source line 59.test_final_signed_ipa_required— source line 65.test_final_signed_ipa_must_match_compiled_build— source line 68.test_legacy_manifest_blocks_source_and_export— source line 79.test_presenter_marker_in_mobile_bundle_blocks_release— source line 86.test_actual_wp_presenter_source_in_mobile_bundle_blocks_release— source line 90.test_shared_core_importing_demo_blocks_release— source line 94.test_mobile_importing_demo_blocks_release— source line 99.test_browser_qa_missing_blocks_export— source line 104.test_browser_qa_missing_scenario_blocks_export— source line 108.test_browser_qa_wrong_commit_blocks_export— source line 114.test_mobile_native_copy_mismatch_blocks_export— source line 120.test_bad_capacitor_webdir_blocks_release— source line 124.test_production_remote_server_url_blocks_release— source line 129.test_sourcemap_blocks_export— source line 134.test_missing_signed_ipa_blocks_when_requested— source line 138.test_empty_or_missing_shared_runtime_blocks_release— source line 141.
Imports and dependencies
- Line 3:
import json - Line 4:
import zipfile - Line 5:
import shutil - Line 6:
import subprocess - Line 7:
import sys - Line 8:
import tempfile - Line 9:
import unittest
Behaviour and audit locations
- Line 39:
write(self.root / 'apps/mobile/capacitor.config.json', - Line 124:
def test_bad_capacitor_webdir_blocks_release(self): - Line 125:
write(self.root / 'apps/mobile/capacitor.config.json', - Line 130:
write(self.root / 'apps/mobile/capacitor.config.json',
Relationship to the system
This page is the file-level source reference, not the architecture rationale. Read the module explanation, the corresponding architecture decision and user guide before changing behaviour. Names and line locations above are extracted from this exact source version; they are reference points, not proof that an external service or a phone feature works.
Change verification
Review the entry points and errors in this file, then run the module’s associated tests, source dependency gate, history gate and documentation coverage check. If the file changes an API response, user interaction, data model, deployment or third-party dependency, revise those human explanations and disaster recovery/licensing when relevant. Do not infer actual native or external API operation from source presence.