-
Notifications
You must be signed in to change notification settings - Fork 6
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
NEW Pass in-memory-cache input for extra_jobs #98
Conversation
59903d8
to
0332303
Compare
There was a problem hiding this 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)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$skipPhpunitSuites = array_map(fn($val) => trim($val), explode(',', $value)); | |
$skipPhpunitSuites = array_map('trim', explode(',', $value)); |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'install_inmemory_cache_exts' => false, | |
'install_in_memory_cache_exts' => false, |
There was a problem hiding this comment.
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
if ($job['install_inmemory_cache_exts'] == 'true') { | ||
$name[] = 'inmemorycache'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($job['install_inmemory_cache_exts'] == 'true') { | |
$name[] = 'inmemorycache'; | |
} | |
if ($job['install_in_memory_cache_exts'] == 'true') { | |
$name[] = 'inmemorycache'; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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. |
0332303
to
26c4c67
Compare
Passes along the new input for extra_jobs. See silverstripe/gha-ci#135
Issue