Skip to content

Conversation

@zaneb
Copy link
Member

@zaneb zaneb commented Dec 17, 2025

Description

Update to the latest version of go-diskfs, which includes diskfs/go-diskfs#315. This ensures that short filenames (i.e. the ones used for compatibility with consumers that don't support the Rock Ridge extension to ISO9660) are truncated to 8.3 format (i.e. ISO9660 Level 1), in the same way that ISOs created with xorriso in its default mode are. This is required for coreos-installer to be able to find files like e.g. KARGS.JSO (which was previously stored as KARGS.JSON).

How was this code tested?

Generated a minimal ISO using this code and verified that KARGS.JSO and BOOT.CAT have the correct short names.

Assignees

/cc @carbonin

Links

Checklist

  • Title and description added to both, commit and PR
  • Relevant issues have been associated
  • Reviewers have been listed
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit tests (note that code changes require unit tests)

@openshift-ci-robot
Copy link

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci openshift-ci bot requested a review from carbonin December 17, 2025 17:37
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 17, 2025
@openshift-ci-robot
Copy link

@zaneb: This pull request references Jira Issue OCPBUGS-64929, which is invalid:

  • expected the bug to target either version "4.22." or "openshift-4.22.", but it targets "4.21.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Description

Update to the latest version of go-diskfs, which includes diskfs/go-diskfs#315. This ensures that short filenames (i.e. the ones used for compatibility with consumers that don't support the Rock Ridge extension to ISO9660) are truncated to 8.3 format (i.e. ISO9660 Level 1), in the same way that ISOs created with xorriso in its default mode are. This is required for coreos-installer to be able to find files like e.g. KARGS.JSO (which was previously stored as KARGS.JSON).

How was this code tested?

CI tests

Assignees

/cc @carbonin

Links

Checklist

  • Title and description added to both, commit and PR
  • Relevant issues have been associated
  • Reviewers have been listed
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit tests (note that code changes require unit tests)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 17, 2025
@zaneb
Copy link
Member Author

zaneb commented Dec 17, 2025

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 17, 2025
@openshift-ci-robot
Copy link

@zaneb: This pull request references Jira Issue OCPBUGS-64929, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @mhanss

Details

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from mhanss December 17, 2025 17:39
Upgrade the minimum Go version from 1.23 to 1.24.0 in preparation for
upgrading to diskfs v1.7.0, which requires Go 1.24.0.

Also fix the logging format string warning that appears with Go 1.24.0+
by removing the unnecessary fmt.Sprintf() wrapper around log.Infof().

Assisted-by: Claude Code
Update to diskfs v1.7.0 to prepare for using the upstream fix for
ISO 9660 filename extension truncation (PR openshift#315).

API changes:
- diskfs.Create() no longer takes diskfs.Raw parameter
- disk.Disk.File field replaced with disk.Disk.Backend

All tests pass with the updated API.

Assisted-by: Claude Code
Upgrade to diskfs master (commit 58541aa) which includes the fix to
properly truncate file extensions to 3 characters for ISO 9660 Level 1
compatibility.

This fixes the issue where coreos-installer couldn't find kargs.json
because diskfs was creating KARGS.JSON (invalid 4-char extension)
instead of KARGS.JSO (valid 3-char extension).

With this fix, diskfs now correctly creates ISO 9660 short names with
truncated extensions, making minimal ISOs compatible with tools like
coreos-installer that access files using their ISO 9660 short names.

Assisted-by: Claude Code
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.02%. Comparing base (7231c9f) to head (3d8e39c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/handlers/initrd_addrsize.go 0.00% 1 Missing ⚠️
pkg/isoeditor/nmstate_handler.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #620   +/-   ##
=======================================
  Coverage   59.02%   59.02%           
=======================================
  Files          27       27           
  Lines        1674     1674           
=======================================
  Hits          988      988           
  Misses        524      524           
  Partials      162      162           
Files with missing lines Coverage Δ
internal/handlers/initrd.go 71.42% <100.00%> (ø)
pkg/isoeditor/isoutil.go 64.38% <100.00%> (ø)
internal/handlers/initrd_addrsize.go 58.33% <0.00%> (ø)
pkg/isoeditor/nmstate_handler.go 47.15% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 9, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 9, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, zaneb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test edge-e2e-ai-operator-ztp
/test edge-e2e-metal-assisted-4-20

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 9, 2026

@zaneb: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@carbonin
Copy link
Member

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants