spack.reporters package
- class spack.reporters.CDash(configuration: CDashConfiguration)[source]
Bases:
Reporter
Generate reports of spec installations for CDash.
To use this reporter, pass the
--cdash-upload-url
argument tospack install
:spack install --cdash-upload-url=\ https://mydomain.com/cdash/submit.php?project=Spack <spec>
In this example, results will be uploaded to the Spack project on the CDash instance hosted at https://mydomain.com/cdash.
- extract_standalone_test_data(package, phases, report_data)[source]
Extract stand-alone test outputs for the package.
- report_test_data(report_dir, package, phases, report_data)[source]
Generate and upload the test report(s) for the package.
- success
Set to False if any error occurs when building the CDash report
- test_skipped_report(report_dir: str, spec: Spec, reason: str | None = None)[source]
Explicitly report spec as being skipped (e.g., CI).
Examples are the installation failed or the package is known to have broken tests.
- Parameters:
report_dir – directory where the report is to be written
spec – spec being tested
reason – optional reason the test is being skipped
- class spack.reporters.CDashConfiguration(upload_url, packages, build, site, buildstamp, track)
Bases:
tuple
- build
Alias for field number 2
- buildstamp
Alias for field number 4
- packages
Alias for field number 1
- site
Alias for field number 3
- track
Alias for field number 5
- upload_url
Alias for field number 0
- class spack.reporters.JUnit[source]
Bases:
Reporter
Generate reports of spec installations for JUnit.
Submodules
spack.reporters.base module
spack.reporters.cdash module
- class spack.reporters.cdash.CDash(configuration: CDashConfiguration)[source]
Bases:
Reporter
Generate reports of spec installations for CDash.
To use this reporter, pass the
--cdash-upload-url
argument tospack install
:spack install --cdash-upload-url=\ https://mydomain.com/cdash/submit.php?project=Spack <spec>
In this example, results will be uploaded to the Spack project on the CDash instance hosted at https://mydomain.com/cdash.
- extract_standalone_test_data(package, phases, report_data)[source]
Extract stand-alone test outputs for the package.
- report_test_data(report_dir, package, phases, report_data)[source]
Generate and upload the test report(s) for the package.
- success
Set to False if any error occurs when building the CDash report
- test_skipped_report(report_dir: str, spec: Spec, reason: str | None = None)[source]
Explicitly report spec as being skipped (e.g., CI).
Examples are the installation failed or the package is known to have broken tests.
- Parameters:
report_dir – directory where the report is to be written
spec – spec being tested
reason – optional reason the test is being skipped
- class spack.reporters.cdash.CDashConfiguration(upload_url, packages, build, site, buildstamp, track)
Bases:
tuple
- build
Alias for field number 2
- buildstamp
Alias for field number 4
- packages
Alias for field number 1
- site
Alias for field number 3
- track
Alias for field number 5
- upload_url
Alias for field number 0