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][202106] Support Debian snapshot mirror to improve build stability #14663

Merged
merged 6 commits into from
Apr 18, 2023

Commits on Apr 17, 2023

  1. [Build] Support j2 template for debian sources (sonic-net#12557)

    Why I did it
    Unify the Debian mirror sources
    Make easy to upgrade to the next Debian release, not source url code change required.
    Support to customize the Debian mirror sources during the build
    Relative issue: sonic-net#12523
    xumia committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    d6a6d25 View commit details
    Browse the repository at this point in the history
  2. [Build] Support Debian snapshot mirror to improve build stability (so…

    …nic-net#13097)
    
    Why I did it
    [Build] Support Debian snapshot mirror to improve build stability
    
    It is to enhance the reproducible build, supports the Debian snapshot mirror. It guarantees all the docker images using the same Debian mirror snapshot and fixes the temporary build failure which is caused by remote Debain mirror indexes changed during the build. It is also to fix the version conflict issue caused by no fixed versions of some of the Debian packages.
    
    How I did it
    Add a new feature to support the Debian snapshot mirror.
    
    How to verify it
    xumia committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    624e48e View commit details
    Browse the repository at this point in the history
  3. [Build] Change the default mirror version config file (sonic-net#13786)

    Why I did it
    Change the mirror config file
    Use the files/build/versions/default/versions-mirror only when reproducible build enabled.
    The config in files/build/versions is only for reproducible build, while snapshot mirror feature does not have the dependency on the reproducible build.
    
    How I did it
    Skip the mirror config in files/build/versions/default/versions-mirror if reproducible build not enabled.
    
    How to verify it
    xumia committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    15be082 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8ab13bd View commit details
    Browse the repository at this point in the history
  5. [Build] Support j2 template for debian sources for docker ptf (sonic-…

    …net#13198)
    
    Change to use the sources.list from the file generated from the j2 template
    xumia committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    1b34b2a View commit details
    Browse the repository at this point in the history
  6. [Build] Optimize the version control for Debian packages (sonic-net#1…

    …4557)
    
    Why I did it
    Optimize the version control for Debian packages.
    Fix sonic-slave-buster/sources.list.amd64 not found display issue, need to generate the file before running the shell command to evaluate the sonic image tag.
    When using the snapshot mirror, it is not necessary to update the version file based on the base image. It will reduce the version dependency issue, when an image is not run when freezing the version.
    
    How I did it
    Not to update the version file when snapshot mirror enabled.
    
    How to verify it
    xumia committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    b7ee985 View commit details
    Browse the repository at this point in the history