Prerequisites
Please make sure to check off these prerequisites before submitting a bug report.
Quick summary
Some CI jobs upload no artifacts even though the CI template expects tarballs and/or synthesis reports, which results in artifact upload warnings. The jobs do not fail, but this is noisy.
Details
Steps to Reproduce
- Look at a CI job that only executes tests without synthesis and without explicit tarball generation, e.g.
- Observe the artifact upload step.
Expected behavior
Artifacts should be produced.
Actual behavior
Artifacts are produced only for certain backends/tests (e.g., Catapult where tarballs are always generated). Other jobs produce none and the upload step logs:
Uploading artifacts...
WARNING: test/pytest/*.tar.gz: no matching files...
WARNING: test/pytest/synthesis_report_*.json: no matching files...
ERROR: No files to upload
Optional
Possible fix
- Add a
WriteTar configuration to CatapultWriter for consistency with other backends.
- If artifacts are desired, update tests to set
write_tar=True.
Additional context
The root cause is inconsistent artifact production: Catapult always generates .tar.gz archives (unconditional write_tar in CatapultWriter.write_hls()), while other backends only generate tarballs when WriterConfig.WriteTar is enabled (default False).
Evidence
hls4ml/writer/catapult_writer.py: write_hls() always calls self.write_tar(model) (no config gate).
hls4ml/writer/vivado_writer.py, oneapi_writer.py, quartus_writer.py: tarball creation is gated by WriteTar.
Prerequisites
Please make sure to check off these prerequisites before submitting a bug report.
Quick summary
Some CI jobs upload no artifacts even though the CI template expects tarballs and/or synthesis reports, which results in artifact upload warnings. The jobs do not fail, but this is noisy.
Details
Steps to Reproduce
test_recurrent_pytorch.py::test_gru,test_lstm,test_rnnExpected behavior
Artifacts should be produced.
Actual behavior
Artifacts are produced only for certain backends/tests (e.g., Catapult where tarballs are always generated). Other jobs produce none and the upload step logs:
Optional
Possible fix
WriteTarconfiguration toCatapultWriterfor consistency with other backends.write_tar=True.Additional context
The root cause is inconsistent artifact production: Catapult always generates
.tar.gzarchives (unconditionalwrite_tarinCatapultWriter.write_hls()), while other backends only generate tarballs whenWriterConfig.WriteTaris enabled (default False).Evidence
hls4ml/writer/catapult_writer.py:write_hls()always callsself.write_tar(model)(no config gate).hls4ml/writer/vivado_writer.py,oneapi_writer.py,quartus_writer.py: tarball creation is gated byWriteTar.