Skip to content

Conversation

wkliao
Copy link
Collaborator

@wkliao wkliao commented Dec 8, 2022

Download PnetCDF release and run its make check and make ptest when Darshan library is pre-loaded.

@github-actions github-actions bot added the CI continuous integration label Dec 8, 2022
@wkliao
Copy link
Collaborator Author

wkliao commented Dec 8, 2022

Note this CI failed due to a bug in #873
It should pass once the bug fix is merged.

run: |
cd ${GITHUB_WORKSPACE}/PnetCDF/pnetcdf-${PNETCDF_VERSION}
make -s LIBTOOLFLAGS=--silent V=1 -j 8 tests > qout 2>&1
export LD_PRELOAD=${GITHUB_WORKSPACE}/darshan_install/lib/libdarshan.so

Choose a reason for hiding this comment

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

Can we add simple logic here to test for existence of expected number of Darshan logs for these tests or something? You can see in the workflow output that no log files are created because we never set the DARSHAN_LOGPATH env variable. I think the least we could do is assert that the expected number of logs was generated (and that the log path is correctly set so Darshan can write them).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting DARSHAN_LOGPATH has been added.

How does Darshah check the number of log files?
Note the number of PnetCDF test programs can increase in new releases.

run: |
cd ${GITHUB_WORKSPACE}/PnetCDF/pnetcdf-${PNETCDF_VERSION}
export LD_PRELOAD=${GITHUB_WORKSPACE}/darshan_install/lib/libdarshan.so
make ptest

Choose a reason for hiding this comment

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

Check log files are correctly generated here, too? Later on, we could add a script that checks more in-depth details as part of the workflow, but something simple is fine for now.

Copy link
Collaborator Author

@wkliao wkliao Dec 14, 2022

Choose a reason for hiding this comment

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

How does one check whether a Darshan log file is correct or not?

Download a PnetCDF official release and run its make check and make
ptest when Darshan library is pre-loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants