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

Add CircleCI Test Splitting Feature #76

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
cdd9b9f
initial
vanditaMW Aug 16, 2024
818e23c
initial
vanditaMW Aug 16, 2024
4a359f1
timing1
vanditaMW Aug 16, 2024
44d2b9e
timing2
vanditaMW Aug 16, 2024
4afa255
filename
vanditaMW Aug 19, 2024
8c6516d
filename
vanditaMW Aug 19, 2024
9f3f3e0
filename
vanditaMW Aug 19, 2024
2152c68
filename
vanditaMW Aug 19, 2024
2f1d0c7
filename
vanditaMW Aug 19, 2024
682d5fc
filename
vanditaMW Aug 19, 2024
5bc3edb
filename
vanditaMW Aug 20, 2024
cb6cf90
filename
vanditaMW Aug 20, 2024
9f5c3c4
filename1
vanditaMW Aug 20, 2024
c69d978
filename
vanditaMW Aug 20, 2024
4767661
filename
vanditaMW Aug 20, 2024
5d5976b
filename
vanditaMW Aug 20, 2024
2c66ecc
filename
vanditaMW Aug 20, 2024
07ab21d
filename
vanditaMW Aug 20, 2024
bc2250b
filename
vanditaMW Aug 20, 2024
da4f4e7
filename2
vanditaMW Aug 20, 2024
ca67d6f
filesize
vanditaMW Aug 20, 2024
42a2d9b
timings
vanditaMW Aug 20, 2024
58394b3
timings
vanditaMW Aug 20, 2024
bf1e107
timings
vanditaMW Aug 20, 2024
b79c226
timings2
vanditaMW Aug 20, 2024
bbb89d7
try
vanditaMW Aug 29, 2024
422de6d
try
vanditaMW Aug 29, 2024
28568a8
passing new param as char
vanditaMW Aug 29, 2024
db1018b
final draft
vanditaMW Aug 29, 2024
cfe823d
filesize
vanditaMW Aug 29, 2024
d2c0cd6
timing 1st run
vanditaMW Aug 29, 2024
5425679
without selectByName
vanditaMW Aug 29, 2024
b612e94
final draft
vanditaMW Aug 29, 2024
34b685f
removing extra files
vanditaMW Aug 29, 2024
e90a861
changed test-deploy
vanditaMW Aug 29, 2024
9364ef5
cell array
vanditaMW Aug 29, 2024
d67add4
cell array
vanditaMW Aug 29, 2024
db9243c
cell array
vanditaMW Aug 29, 2024
313fa9c
cell array file name
vanditaMW Aug 29, 2024
e833cd0
without feature
vanditaMW Aug 29, 2024
d2062eb
without feature
vanditaMW Aug 29, 2024
40683b6
without feature
vanditaMW Aug 29, 2024
2046013
Cleaning repo
vanditaMW Sep 1, 2024
4066c58
Cleaning repo
vanditaMW Sep 1, 2024
13aad34
fixing lint
vanditaMW Sep 1, 2024
dc2faa0
fixing lint
vanditaMW Sep 1, 2024
59de304
updated description
vanditaMW Sep 4, 2024
3615911
addressing comment
vanditaMW Sep 5, 2024
3818b0f
Resolving comments
vanditaMW Sep 5, 2024
e7956af
Added test
vanditaMW Sep 9, 2024
2ecf54c
Added verification step
vanditaMW Sep 10, 2024
5fa8365
Updated verification step
vanditaMW Sep 10, 2024
1b1ac53
updated test verification
vanditaMW Sep 17, 2024
0955fe2
updated test-deploy
vanditaMW Sep 17, 2024
30d5879
updated test_deploy.yml
vanditaMW Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/commands/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ parameters:
folders using a colon-separated or semicolon-separated list.
type: string
default: ''
select-by-name:
description: >
Name or pattern used to select test suite elements. To create a test suite, MATLAB uses only the test elements
vanditaMW marked this conversation as resolved.
Show resolved Hide resolved
that match the specified name or pattern.
vanditaMW marked this conversation as resolved.
Show resolved Hide resolved
type: string
default: ''
select-by-folder:
description: >
vanditaMW marked this conversation as resolved.
Show resolved Hide resolved
Location of the folder used to select test suite elements, relative to the project root folder.
Expand Down Expand Up @@ -128,6 +134,7 @@ steps:
PARAM_TEST_RESULTS_PDF: <<parameters.test-results-pdf>>
PARAM_STRICT: <<parameters.strict>>
PARAM_USE_PARALLEL: <<parameters.use-parallel>>
PARAM_SELECT_BY_NAME: <<parameters.select-by-name>>
PARAM_OUTPUT_DETAIL: <<parameters.output-detail>>
PARAM_LOGGING_LEVEL: <<parameters.logging-level>>
PARAM_STARTUP_OPTIONS: <<parameters.startup-options>>
Expand Down
9 changes: 9 additions & 0 deletions src/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ if [[ "$os" = CYGWIN* || "$os" = MINGW* || "$os" = MSYS* ]]; then
binext=".exe"
fi

selectByName=$(eval echo "$PARAM_SELECT_BY_NAME" | awk '{
for(i=1; i<=NF; i++) {
gsub(/\047/, "\047\047", $i);
printf "\047%s\047%s", $i, (i==NF ? "" : ", ");
}
}')
selectByName="{$selectByName}"

"${tmpdir}/bin/run-matlab-command$binext" "\
addpath('${gendir}/scriptgen');\
testScript = genscript('Test',\
Expand All @@ -76,6 +84,7 @@ fi
'PDFTestReport','${PARAM_TEST_RESULTS_PDF}',\
'Strict',${PARAM_STRICT},\
'UseParallel',${PARAM_USE_PARALLEL},\
'SelectByName', $selectByName,\
'OutputDetail','${PARAM_OUTPUT_DETAIL}',\
'LoggingLevel','${PARAM_LOGGING_LEVEL}');\
disp('Running MATLAB script with contents:');\
Expand Down