Skip to content

Commit 33f556f

Browse files
authored
Merge pull request #907 from durable-workflow/fix/237-ci-bootstrap-trust
Bootstrap verified pip trust before CI network installs
2 parents f00df58 + 32f4046 commit 33f556f

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎.github/workflows/php.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
4242
with:
4343
python-version: "3.13"
44+
- name: Bootstrap patched pip trust
45+
uses: durable-workflow/.github/.github/actions/bootstrap-patched-pip@75587fc33ff40c34f32ef777293dad56bb6f48c7 # clean-trust
4446
- name: Install policy dependencies
4547
run: "python -m pip install --only-binary :all: PyYAML==6.0.2"
4648
- name: Require centrally approved immutable action commits

‎tests/Unit/Queue/SqliteDatabaseAcknowledgementTest.php‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,19 @@ public function testAReclaimedReservationSurvivesTheOriginalAcknowledgementRetry
192192

193193
public function testChangedQueueAndReservationTimestampAreAlsoFenced(): void
194194
{
195-
foreach ([[
196-
'queue' => 'neighbor',
197-
], [
198-
'reserved_at' => time() + 1,
199-
]] as $change) {
195+
foreach (['queue', 'reserved_at'] as $field) {
200196
$job = $this->job();
197+
$changed = $this->connection->table('jobs')
198+
->find($job->getJobId());
199+
self::assertNotNull($changed);
200+
$changed->{$field} = $field === 'queue' ? 'neighbor' : (int) $changed->reserved_at + 1;
201201
$this->connection->table('jobs')
202202
->where('id', $job->getJobId())
203-
->update($change);
203+
->update([
204+
$field => $changed->{$field},
205+
]);
204206
$job->delete();
205-
self::assertNotNull($this->connection->table('jobs')->find($job->getJobId()));
207+
self::assertEquals($changed, $this->connection->table('jobs')->find($job->getJobId()));
206208
}
207209
}
208210

0 commit comments

Comments
 (0)