Continuous Integration Logs and Artifacts
A build log records events during execution. An artifact retains a file produced by the job for inspection or downstream use.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Keep evidence from a failing step
A test failure may provide a message in the log and a separately saved report with expected and actual values. A step should save only needed diagnostic details. Synthetic test data helps prevent sensitive inputs from ending up in either output.
Tie observations to a run
Name the job and source commit associated with each result. Separate logs from attempts if re-running a job. Commit snapshots give a stable identity for that input.[1]
Use a log to locate and an artifact to reproduce
A failing render test can log the mismatched record and upload the actual output as an artifact. The log can show when the mismatch appeared, while the artifact preserves exact details for comparison. Capturing both helps when the runner directory disappears. See stable output against a reference.
Log: fixture ID and first different line
Artifact: generated output and optional sanitized diff
Metadata: source revision and job target
Preserve failure evidence safely
A job may only upload artifacts on success unless configured otherwise. Test one intentional failure while keeping secret or personal data out of retained logs. Confirm retention and naming let the expected reader locate the file.