Address open review comments on PR #15578 (kernel flavor versioning)#16067
Closed
Copilot wants to merge 2 commits into
Closed
Address open review comments on PR #15578 (kernel flavor versioning)#16067Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Co-authored-by: PawelWMS <24633722+PawelWMS@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address all open comments on PR #15578
Address open review comments on PR #15578 (kernel flavor versioning)
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
Addresses all open reviewer comments on PR #15578. Fixes correctness issues in
versionsprocessor, refactorsCreateChrootto use the functional options pattern, and improves documentation.Change Log
specreaderutils.CreateChroot— functional options patternspecsDir,srpmsDir,releaseVersionMacrosFilestring params with variadicChrootOptionargs:versionsprocessor— correctness & robustness fixeslogger.PanicOnError("string literal")bug (always panicked regardless of error) →Errorf+os.Exit(1)PanicfinsidedoParsetoErrorf; removed silentcontinueso spec processing errors propagatechroot.Run(doParse)/doParse()%{evr}to%{EPOCHNUM}|%{VERSION}-%{RELEASE}— epoch no longer bleeds into the version macro;azl_<name>_epochis emitted separately when epoch > 0%{NAME}(binary package name) instead of the spec file nameprocessPackageVersionStringreturns[]string(one entry per macro line) instead of a single\n-joined stringvar packageVersionRereplaces per-callregexp.MustCompileazl3-specific comment on dist tag strippingversionsprocessor_test.goepochnum|version-release) and[]stringreturn typeassert.Panicswithassert.Error(function now returns error instead of panicking on bad input)TestProcessPackageVersionString_NoEpochMacroWhenZeroandTestProcessPackageVersionString_UsesPackageNameNotSpecNametoolkit/docs/how_it_works/3_package_building.mdazl_<name>_releasedoes not include the distro suffix, includes macro format examplesDoes this affect the toolchain?
NO
Associated issues
Test Methodology
versionsprocessorunit tests pass (go test ./versionsprocessor/ -v)specreaderandversionsprocessorbinaries build cleanly💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.