• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IGNF / validator-api / 22135658047

18 Feb 2026 10:18AM UTC coverage: 53.81% (+0.2%) from 53.594%
22135658047

push

github

web-flow
fix: adding new ways to archive (#83)

* archive 5 days

* fix(test): updateArguments

* fix(test): deleteDataArgument

54 of 113 new or added lines in 16 files covered. (47.79%)

8 existing lines in 4 files now uncovered.

346 of 643 relevant lines covered (53.81%)

2.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Command/Validations/ProcessOneCommand.php
1
<?php
2

3
namespace App\Command\Validations;
4

5
use App\Validation\ValidationManager;
6
use Psr\Log\LoggerInterface;
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\Console\Command\SignalableCommandInterface;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11

12
/**
13
 * Helper command to process pending validations.
14
 */
15
class ProcessOneCommand extends Command implements SignalableCommandInterface
16
{
17
    protected static $defaultName = 'ign-validator:validations:process-one';
18

19
    /**
20
     * @var ValidationManager
21
     */
22
    private $validationManager;
23

24
    /**
25
     * @var LoggerInterface
26
     */
27
    private $logger;
28

29
    public function __construct(
30
        ValidationManager $validationManager,
31
        LoggerInterface $logger,
32
    ) {
33
        parent::__construct();
×
34
        $this->validationManager = $validationManager;
×
35
    }
36

37
    protected function configure()
38
    {
39
        // TODO add --uid option to ease command testing
40
        $this
×
41
            ->setDescription('Launches a document validation')
×
42
        ;
×
43
    }
44

45
    protected function execute(InputInterface $input, OutputInterface $output): int
46
    {
47
        $this->validationManager->processOne();
×
48

UNCOV
49
        return 0;
×
50
    }
51

52
    public function getSubscribedSignals(): array
53
    {
NEW
54
        return [\SIGINT, \SIGTERM];
×
55
    }
56

57
    public function handleSignal(int $signal): void
58
    {
NEW
59
        $this->logger->warning('[ProcessOneCommand] received stop signal while processing validation!', [
×
NEW
60
            'signal' => $signal,
×
61
        ]);
×
62
        $this->validationManager->cancelProcessing();
×
63
        $exitCode = 128 + $signal;
×
NEW
64
        $this->logger->info('terminate process with exitCode={exitCode}', [
×
NEW
65
            'exitCode' => $exitCode,
×
66
        ]);
×
67
        exit($exitCode);
×
68
    }
69
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc