Uploaded image for project: 'MariaDB Foundation Development'
  1. MariaDB Foundation Development
  2. MDBF-1138

Fix shared mutable default in BaseBuilder.get_config

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Major
    • Resolution: Unresolved
    • BB v1.10
    • BB v1.11
    • Buildbot
    • None

    Description

      Previously, get_config used a mutable default argument for properties (i.e. properties: dict[str, str] = {}), which caused all instances without an explicit properties argument to share the same dictionary. This led to unexpected behavior when one instance modified the dictionary, as changes were reflected across all others and some builders got a wrong value for jobs.

      Attachments

        Activity

          People

            rvarzaru Varzaru Razvan-Liviu
            rvarzaru Varzaru Razvan-Liviu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 3h
                3h