Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Pass in-memory-cache input for extra_jobs #98

Merged

Conversation

GuySartorelli
Copy link
Member

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a unit test

job_creator.php Outdated
@@ -543,6 +549,9 @@ public function createJson(string $yml): string
$simpleMatrix = $this->parseBoolValue($value);
} else if (in_array($input, ['github_my_ref', 'github_repository', 'parent_branch'])) {
continue;
} else if ($input === 'phpunit_skip_suites') {
// value is a comma-separated string
$skipPhpunitSuites = array_map(fn($val) => trim($val), explode(',', $value));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$skipPhpunitSuites = array_map(fn($val) => trim($val), explode(',', $value));
$skipPhpunitSuites = array_map('trim', explode(',', $value));

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh neat! Done.

job_creator.php Outdated
@@ -152,6 +152,7 @@ public function createJob(int $phpIndex, array $opts): array
'endtoend_config' => '',
'js' => false,
'doclinting' => false,
'install_inmemory_cache_exts' => false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'install_inmemory_cache_exts' => false,
'install_in_memory_cache_exts' => false,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

job_creator.php Outdated
Comment on lines 640 to 642
if ($job['install_inmemory_cache_exts'] == 'true') {
$name[] = 'inmemorycache';
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ($job['install_inmemory_cache_exts'] == 'true') {
$name[] = 'inmemorycache';
}
if ($job['install_in_memory_cache_exts'] == 'true') {
$name[] = 'inmemorycache';
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@GuySartorelli
Copy link
Member Author

Needs a unit test

I had considered that but there's no tests for any of the extra_jobs stuff right now. If we want test coverage for extra_jobs we should do that as a separate card, and add coverage for it as a whole rather than just for this small part of it.

@emteknetnz emteknetnz merged commit afb0a39 into silverstripe:1 Jul 12, 2024
4 checks passed
@emteknetnz emteknetnz deleted the pulls/1/in-memory-cache branch July 12, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants