Skip to content

ciq-cherry-pick should detect GKH linux-stable shas and appropreately set commit header #21

@PlaidCat

Description

@PlaidCat

As seen in this PR ctrliq/kernel-src-tree#271 (comment) there is a desire to be able to use GKH-stable LongTerm commit shas when they actually match up to what we can use in the Rocky LTS kernels.

Things that need to happen:

  • If provided sha cannot be found in linus-mainline then fall back to long term kernel.
  • Parse long term message for upstream sha, its format has changed since they started doing this
    • Validate that the sha is valid in LInus's tree (just in case)
  • Find the Tag that the GKH sha belongs too and included it in the upstream-diff to reference which LongTerm branch it belongs too.

See this as a format reference:
ctrliq/kernel-src-tree#271 (comment)

The look up can basically be done like this

git tag --sort=creatordate --contains <sha> | head -n1

This will give the first tag the sha belongs to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions