Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build/frr] Properly reset sonic-frr/frr branch after build #20868

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wdoekes
Copy link
Contributor

@wdoekes wdoekes commented Nov 20, 2024

Why I did it

After a build ./src/sonic-frr/frr was always marked as "modified". This changeset resets it to the way it was before the build.

Resolves: #20869

How I did it

The sonic-frr/Makefile had steps to apply stg (and other) patches. Now a checkout to the original branch is done at the end, and other cleanup is done at the start.

How to verify it

Run:

make configure PLATFORM=broadcom

make BLDENV=bookworm -f Makefile.work \
  target/debs/bookworm/frr_8.5.4-sonic-0_amd64.deb

Observe how ./src/sonic-frr/frr is unchanged afterwards. The patched version is still available in a stored stg_temp branch.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

^- also relevant for 202405 branch (needs slight change)

Tested branch (Please provide the tested image version)

master

@wdoekes wdoekes force-pushed the reset-sonic-frr-submodule-after-build branch 2 times, most recently from 820504f to 91166ac Compare November 20, 2024 22:08
==== Why I did it

After a build ./src/sonic-frr/frr was always marked as "modified". This
changeset resets it to the way it was before the build.

Resolves: sonic-net#20869

==== How I did it

The sonic-frr/Makefile had steps to apply stg (and other) patches. Now a
checkout to the original branch is done at the end, and other cleanup is
done at the start.

==== How to verify it

Run:

    make configure PLATFORM=broadcom

    make BLDENV=bookworm -f Makefile.work \
      target/debs/bookworm/frr_8.5.4-sonic-0_amd64.deb

Observe how ./src/sonic-frr/frr is unchanged afterwards. The patched
version is still available in a stored stg_temp branch.
@wdoekes wdoekes force-pushed the reset-sonic-frr-submodule-after-build branch from 91166ac to a0bce7a Compare November 20, 2024 22:10
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.

[build/frr] src/sonic-frr/frr is changed after the build
1 participant