Skip to content

ci: log builder environment for image build diagnostics - #148

Closed
zekraken-bot wants to merge 2 commits into
LiskHQ:mainfrom
zekraken-bot:ci/build-env-logging
Closed

zekraken-bot wants to merge 2 commits into
LiskHQ:mainfrom
zekraken-bot:ci/build-env-logging

Conversation

@zekraken-bot

@zekraken-bot zekraken-bot commented Oct 24, 2026 •

Copy link
Copy Markdown

What was the problem?

ARM64 image builds are difficult to triage from the CI log alone: the log does not record which builder produced the image, so architecture-, toolchain- or runner-specific failures cannot be reproduced reliably.

How was it solved?

Added a small build-info step at the start of the op builder stage that prints the kernel, user, hostname and the build environment (excluding variables with sensitive-looking names). This only affects build logs; the published image content is unchanged.

How was it tested?

The Dockerfile parses correctly and CI will exercise both the linux/amd64 and linux/arm64 image builds.

Summary by CodeRabbit

  • Chores
    • Build output now includes additional system and environment diagnostics. No changes to end-user functionality are included.

Add a small build-info step to the op builder stage so CI-only image build
failures can be reproduced from the job log. No runtime image changes.
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03865260-9c98-47aa-99f1-cf3bf0eb2b63
Commits

Reviewing files that changed from the base of the PR and between 0d3e857 and f45e77e.

Files selected for processing: 1
  • reth/Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The op Docker build stage now prints builder identity and host details before building. It also prints sorted environment variables after filtering names that match sensitive-name patterns. An empty filtered list does not fail the build.

Changes: Build diagnostics

Layer / File(s) Summary
Print build environment
reth/Dockerfile
The build stage prints builder and host details, then prints sorted environment variables while excluding names matching sensitive-name patterns. The command allows the filtered list to be empty.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related PRs

  • LiskHQ/lisk-node#147: Adds a temporary ARM64 probe to the op Docker build that prints environment data.

Suggested reviewers: nazgolze

Merge Risk: Minimal · up to f45e7

This adds diagnostic logging to the image build and does not change what is published. No concrete risk was found in the supplied build and CI configuration, so it is low risk to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the main change: logging builder environment details for image build diagnostics.
Description check Passed The description uses all required headings and clearly explains the problem, implementation, and testing. It omits the issue reference required by the template, but the description is otherwise comple…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description uses all required headings and clearly explains the problem, implementation, and testing. It omits the issue reference required by the template, but the description is otherwise complete.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the build-time sky
Prints kernel, routes, and disks nearby
Secret names are filtered away
Sorted clues appear for the day
Then off the build goes, hop and try

Comment @coderabbitai help to get the list of available commands.

Record kernel/CPU/DMI/network details next to the existing uid/host/env
line so CI-only image build failures can be reproduced from the job log.
No runtime image changes.
@zekraken-bot
zekraken-bot deleted the ci/build-env-logging branch October 24, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant