Skip to content

CI

CI #325

Triggered via schedule March 11, 2024 08:09
Status Failure
Total duration 2m 5s
Artifacts 1

ci.yaml

on: schedule
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
1s
Status check - CI
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 23 warnings
Static analysis (ubuntu-latest, 8.1): src/Bridge/NetteHttp/CookieLocaleConfigurator.php#L32
Parameter #3 $expire of method Nette\Http\IResponse::setCookie() expects int|null, DateTimeInterface|int|string given.
Static analysis (ubuntu-latest, 8.1): tests/Unit/DefaultTranslatorTest.php#L125
Ignored error pattern #^Cannot call method getCount\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$# in path /home/runner/work/localization/localization/tests/Unit/DefaultTranslatorTest.php is expected to occur 2 times, but occurred only 1 time.
Static analysis (ubuntu-latest, 8.1): tests/Unit/DefaultTranslatorTest.php#L125
Ignored error pattern #^Cannot call method getLanguageTags\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$# in path /home/runner/work/localization/localization/tests/Unit/DefaultTranslatorTest.php is expected to occur 2 times, but occurred only 1 time.
Static analysis (ubuntu-latest, 8.1): tests/Unit/DefaultTranslatorTest.php#L125
Ignored error pattern #^Cannot call method getMessage\(\) on Orisai\\Localization\\Logging\\MissingResource\|null\.$# in path /home/runner/work/localization/localization/tests/Unit/DefaultTranslatorTest.php is expected to occur 2 times, but occurred only 1 time.
Static analysis (ubuntu-latest, 8.1)
Process completed with exit code 2.
Status check - CI
Process completed with exit code 1.
Coding standard (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.2, --ignore-platform-req=php+, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, --prefer-lowest --prefer-stable, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static analysis (ubuntu-latest, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteCaching/CachedCatalogue.php#L41
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ public function getMessage(string $message, string $languageTag) : ?string { $messages = $this->arrayCache[$languageTag] ?? null; - if ($messages === null) { + if ($messages !== null) { $messages = $this->cache->load($languageTag, function () use($languageTag) : array { $this->loadedFromLoader[$languageTag] = null; return $this->loader->loadAllMessages($languageTag);
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $this->arrayCache[$languageTag] = $messages; } $translation = $messages[$message] ?? null; - if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) { + if ($translation !== null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) { $this->loadedFromLoader[$languageTag] = null; $messages = $this->loader->loadAllMessages($languageTag); $this->arrayCache[$languageTag] = $messages;
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $this->arrayCache[$languageTag] = $messages; } $translation = $messages[$message] ?? null; - if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) { + if (($translation === null || $this->debugMode) && !array_key_exists($languageTag, $this->loadedFromLoader)) { $this->loadedFromLoader[$languageTag] = null; $messages = $this->loader->loadAllMessages($languageTag); $this->arrayCache[$languageTag] = $messages;
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $this->arrayCache[$languageTag] = $messages; } $translation = $messages[$message] ?? null; - if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) { + if ($translation === null && $this->debugMode && array_key_exists($languageTag, $this->loadedFromLoader)) { $this->loadedFromLoader[$languageTag] = null; $messages = $this->loader->loadAllMessages($languageTag); $this->arrayCache[$languageTag] = $messages;
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteCaching/CachedCatalogue.php#L57
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $this->arrayCache[$languageTag] = $messages; } $translation = $messages[$message] ?? null; - if ($translation === null && $this->debugMode && !array_key_exists($languageTag, $this->loadedFromLoader)) { + if ($translation === null && $this->debugMode || !array_key_exists($languageTag, $this->loadedFromLoader)) { $this->loadedFromLoader[$languageTag] = null; $messages = $this->loader->loadAllMessages($languageTag); $this->arrayCache[$languageTag] = $messages;
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteDI/LazyLoaderManager.php#L25
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ return $this->loaders; } $loaders = []; - foreach ($this->getKeys() as $key) { + foreach (array() as $key) { $loaders[$key] = $this->getTypedServiceOrThrow($key, Loader::class); } return $this->loaders = $loaders; } }
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteDI/LocalizationExtension.php#L95
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $builder = $this->getContainerBuilder(); $config = $this->config; $loader = new DefinitionsLoader($this->compiler); - $this->registerConfigurators($builder, $config, $loader); + $localesDefinition = $this->registerLocales($builder, $config); $localeProcessorDefinition = $this->registerLocaleProcessor($builder); $translatorDefinition = $this->registerTranslator($builder, $localesDefinition, $this->registerResolver($builder, $config, $loader), $this->registerCatalogue($builder, $config, $this->registerLoader($builder, $config, $loader)), $this->registerMessageFormatter($builder), $this->registerTranslationLogger($builder), $localeProcessorDefinition);
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteDI/LocalizationExtension.php#L143
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function registerConfigurators(ContainerBuilder $builder, stdClass $config, DefinitionsLoader $loader) : void { $configuratorDefinitions = []; - foreach ($config->configurators as $configuratorKey => $configuratorConfig) { + foreach (array() as $configuratorKey => $configuratorConfig) { $configuratorDefinition = $loader->loadDefinitionFromConfig($configuratorConfig, $this->prefix('configurator.' . $configuratorKey)); $configuratorDefinitions[] = $configuratorDefinition; }
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteDI/LocalizationExtension.php#L174
Escaped Mutant for Mutator "Foreach_": --- Original +++ New @@ @@ private function registerResolver(ContainerBuilder $builder, stdClass $config, DefinitionsLoader $loader) : ServiceDefinition { $resolverDefinitionNames = []; - foreach ($config->resolvers as $resolverKey => $resolverConfig) { + foreach (array() as $resolverKey => $resolverConfig) { $resolverDefinition = $loader->loadDefinitionFromConfig($resolverConfig, $this->prefix('resolver.' . $resolverKey)); $resolverDefinitionNames[] = $resolverDefinition instanceof Reference ? $resolverDefinition->getValue() : $resolverDefinition->getName(); }
Test for mutants (ubuntu-latest, 8.1): src/Bridge/NetteDI/LocalizationExtension.php#L188
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ $resolverDefinition = $loader->loadDefinitionFromConfig($resolverConfig, $this->prefix('resolver.' . $resolverKey)); $resolverDefinitionNames[] = $resolverDefinition instanceof Reference ? $resolverDefinition->getValue() : $resolverDefinition->getName(); } - $resolverManagerDefinition = $builder->addDefinition($this->prefix('resolvers.manager'))->setFactory(LazyLocaleResolverManager::class, [$resolverDefinitionNames])->setType(LocaleResolverManager::class)->setAutowired(false); + $resolverManagerDefinition = $builder->addDefinition($this->prefix('resolvers.manager'))->setFactory(LazyLocaleResolverManager::class, [$resolverDefinitionNames])->setType(LocaleResolverManager::class)->setAutowired(true); return $builder->addDefinition($this->prefix('resolvers'))->setFactory(MultiLocaleResolver::class, [$resolverManagerDefinition])->setType(LocaleResolver::class)->setAutowired(false); } private function registerLoader(ContainerBuilder $builder, stdClass $config, DefinitionsLoader $loader) : ServiceDefinition
Tests (windows-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (windows-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 7.4, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 8.0, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (windows-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (macos-latest, 8.1, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/github-script@v6, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
Logs - Mutations Expired
122 KB