Skip to content

Commit e0eeff1

Browse files
committed
Revert Repository.php try/catch and DoneHandler.php check logic for testing
1 parent 272efd1 commit e0eeff1

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

app/Http/Submission/Handlers/DoneHandler.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ public function endElement($parser, $name): void
6363
$this->Build->UpdateBuild($this->Build->Id, -1, -1);
6464
$this->Build->MarkAsDone(true);
6565

66-
// Create or update the GitHub check for this commit.
67-
$revision = \App\Models\Build::findOrFail((int) $this->Build->Id)->updateStep->revision ?? '';
68-
if ($revision !== '') {
66+
// Should we re-run any checks that were previously marked
67+
// as pending?
68+
if ($pendingSubmissionsModel !== null && $pendingSubmissionsModel->recheck) {
69+
$revision = \App\Models\Build::findOrFail((int) $this->Build->Id)->updateStep->revision ?? '';
6970
Repository::createOrUpdateCheck($revision);
7071
}
7172

app/cdash/app/Model/Repository.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ public static function createOrUpdateCheck($sha): void
7070
$project = new Project();
7171
$project->Id = $projectid;
7272
$project->Fill();
73-
try {
74-
$repositoryInterface = self::getRepositoryInterface($project);
75-
} catch (Exception $e) {
76-
return;
77-
}
73+
$repositoryInterface = self::getRepositoryInterface($project);
7874
$repositoryInterface->createCheck($sha);
7975
}
8076

0 commit comments

Comments
 (0)