Verify debug information in SDK release artifacts
Modular container CI / release-build (push) Has been cancelled

This commit is contained in:
faumaray committed 2026-08-01 18:07:06 +03:00
1 parent 8ac39621fd
commit 8212f13a19
2 files changed
+88

No files matched your search

@@ -18,6 +18,7 @@ ROOT = Path(__file__).resolve().parents[2]
PACKAGE = ROOT / "scripts" / "package-component.py"
PUBLISH = ROOT / "scripts" / "publish-component-release.py"
VERIFY = ROOT / "scripts" / "verify-locked-component-feeds.py"
VERIFY_RELWITHDEBINFO = ROOT / "scripts" / "verify-relwithdebinfo.py"
class IndependentComponentReleaseTests(unittest.TestCase):
@@ -111,12 +112,29 @@ class IndependentComponentReleaseTests(unittest.TestCase):
)
with self.assertRaisesRegex(SystemExit, "has no debug information"):
module.require_debug_information(package_root)
rejected = subprocess.run(
[str(VERIFY_RELWITHDEBINFO), "--root", str(package_root)],
check=False,
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
self.assertNotEqual(rejected.returncode, 0)
self.assertIn("has no debug information", rejected.stderr)
subprocess.run(
[compiler, "-O2", "-g", str(source), "-o", str(executable)],
check=True,
)
module.require_debug_information(package_root)
accepted = subprocess.run(
[str(VERIFY_RELWITHDEBINFO), "--root", str(package_root)],
check=False,
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
self.assertEqual(accepted.returncode, 0, accepted.stderr)
def package(self, component: str, package_id: str, version: str) -> tuple[Path, Path]:
package_root = self.root / f"stage-{component}"