knowledge-middleware
Reporting generates an integration report by
standing up all of the relevant TA3 services with a Docker Compose
and trying to use a few requests through the relevant parts of the stack.
- Log in to GitHub Package Registry
- Ensure your current directory is
./reporting
. - Create
reporting/.env
based offenv.sample
and change variables as needed- Set
UPLOAD=TRUE
,BUCKET
,AWS_ACCESS_KEY_ID
, andAWS_SECRET_ACCESS_KEY
IF you want the report uploaded
- Set
- Run
docker compose run --build tests
. Once thetests
container completes, the report is done.- Note: In order to run specific scenarios, you can specify them as follows:
docker compose run tests "<Scenario Directory>"
where the<Scenario Directory>
the is full name of the directory containing all scenario files. You can specify as many as you would like in one run. Example:docker compose run tests "SIDARTHE Code" "SIDARTHE Equations" "SIR"
- Note: In order to run specific scenarios, you can specify them as follows:
- View results using
docker compose run --build --service-ports dashboard
(Assuming you haven't deleted any volumes)
Note: The services used in testing are not cleaned up following testing. When done with running tests,
be sure to shut down the services by running docker compose down
to conserve your resources.
In the scenarios
directory, you'll find two example scenarios: 12 Month Eval Scenario 3
and SIDARTHE
. To add a new scenario, start by creating a directory with the name of your scenario. Within this directory, include a file named description.txt containing a detailed scenario description. Additionally, each scenario must have at least one of the following assets: a paper.pdf
, the code (which can be specified by providing as specified below), and/or a dataset.csv
. You can use the existing scenarios as examples while following these guidelines to prepare your new scenario for inclusion in the system. You can add a domain.txt
file which would contain a string for the name of the domain; currently one of [epi, climate]
.
There are a few ways to add code to a scenario:
- a
code.zip
file containing all the code to be tested - a
dynamics.*
file that contains exclusively the dynamics of the code to be tested - a GitHub repository URL in a
repo_url.txt
file