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

FAKE: for gihub action testing #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

AljenU
Copy link
Owner

@AljenU AljenU commented Nov 25, 2021

New workflows were added, they only show up in Actions when on master, OR when a PR to master is opened.....

…gh xml file at the default location

Add inputs to save the new file at the default location with the default filename

Also ask for spm and rawdatadir locations when using the base parameter xml as seed, since those are required for a minimal-complete parameter xml file.
…rectly

Use aas_create_parameter_xml to create the user parameter xml file with the default name in the default location.

Additionally, update various comments in the file

Final changes to complete automaticanalysis#301
tutorial_1: add downloaddemo call, remove aa_close call
other examples: remove aa_close call, it is not needed when aa runs successfully, as it
is already part of both aa_doprocessing and aa_report
This to enable adding non-use-case tests, which needs more advanced filtering options, while keeping aa_test as the entry point for all testing

For now, the changes are backward compatible with how aa_test could be used before. Only the log file has more info in it now.
Because TestParameterDefinition only available as of 2021a. Actually nicer this way, inputargs are not really a test parameter, so better to use a TestClassSetup function.
Only predefined datasets can be downloaded by aa_downloaddemo: this makes it possible to test
that the datasets are still available through Continuous Integration tests.

No rawdatadir manipulations inside aa_downloaddemo: When using aa_downloaddemo, the input must
specify exactly where the data should go. Since this function is for use in demo scripts, can
require that aap.directory_conventions.rawdatadir is set to expectation of this function. And
makes this function single-purpose.

No aas_shell calls in aa_downloaddemo: only use Matlab provided functions, no need to use system
functions. This also makes aa_downloaddemo windows compatible.

Add aa_downloaddemo_datasets to hold the list of predefined datasets. This makes it easy to loop
over all predefined datasets in a test.

Adapt all examples that use aa_downloaddemo to use the new calling convention.
@AljenU AljenU marked this pull request as draft November 25, 2021 08:15
Although this tutorial is to help users set up a parameter file, adapt it so it can also run without user interaction. In order to be able to have an automated test for tutorial_1
Tests for downloaddemo and tutorial_1, also made part of aa_test list of tests
Introduce tag-based filtering in aa_test, to have more fine-grained filtering. And add tags to the use-case tests.

Add a dedicated actions yml file for the non-use-case tests.
One of the demo datasets is an unzipped tar, which can give an error with untar if an incorrect file extension is specified.
@AljenU AljenU force-pushed the feature-downloaddemo-simplification branch 4 times, most recently from 2dab2f4 to e4b9bea Compare November 25, 2021 10:53
Single-step install and configure, make parameter file name an env var
@AljenU AljenU force-pushed the feature-downloaddemo-simplification branch from bc26d5d to 3cbd320 Compare November 25, 2021 12:26
@elius1
Copy link
Collaborator

elius1 commented Nov 25, 2021

I can give this a review, once you're finished with the changes.

@AljenU AljenU force-pushed the feature-downloaddemo-simplification branch 3 times, most recently from e51ae7c to f16077d Compare November 25, 2021 13:36
@AljenU AljenU force-pushed the feature-downloaddemo-simplification branch from f16077d to d9ad33a Compare November 25, 2021 13:55
@AljenU AljenU marked this pull request as ready for review November 25, 2021 13:56
@AljenU AljenU requested a review from elius1 December 8, 2021 10:20
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