fix(agents): enforce exact profile model identity (#3473)
Co-authored-by: ayattara <alassane.yattara@savoirfairelinux.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
@@ -51,6 +51,11 @@ class BackendTestsWorkflowContractTest(unittest.TestCase):
|
||||
self.assertIn('"postgres-18:${POSTGRES_18_RESULT}"', self.workflow)
|
||||
self.assertIn("TestPreviousStableUpgrade", self.workflow)
|
||||
|
||||
def test_windows_job_has_headroom_for_hosted_runner_variance(self) -> None:
|
||||
_, marker, windows_job = self.workflow.partition(" test-windows:\n")
|
||||
self.assertTrue(marker)
|
||||
self.assertIn("timeout-minutes: 40", windows_job)
|
||||
|
||||
def test_base_image_mirrors_postgres_18_at_the_same_digest(self) -> None:
|
||||
self.assertIn("POSTGRES_18_DIGEST: " + POSTGRES_18_DIGEST, self.base_image_workflow)
|
||||
self.assertIn("POSTGRES_18_SOURCE: docker.io/library/postgres:18@" + POSTGRES_18_DIGEST, self.base_image_workflow)
|
||||
|
||||
@@ -707,9 +707,10 @@ jobs:
|
||||
needs: changes
|
||||
if: needs.changes.outputs.run == 'true'
|
||||
runs-on: windows-latest
|
||||
# The race-sensitive Windows package suite can approach 20 minutes on a
|
||||
# busy hosted runner; keep the cap finite while allowing runner variance.
|
||||
timeout-minutes: 30
|
||||
# Dependency hydration, build, vet, and the race-sensitive package suite
|
||||
# can consume 30 minutes on a cold hosted runner. Keep the cap finite while
|
||||
# leaving the final targeted regression checks time to run.
|
||||
timeout-minutes: 40
|
||||
# Least-privilege: this job only reads source and runs tests, no PR/issue
|
||||
# writes or release operations. Flagged by CodeQL workflow audit + matching
|
||||
# CodeRabbit nitpick.
|
||||
|
||||
Reference in New Issue
Block a user