gentle-painting-32087
07/10/2023, 3:30 PMInitialization options changed: reinitializing scheduler...
gentle-painting-32087
07/10/2023, 3:31 PM"root['name_to_api_type_info']['pants.core.goals.fix.Batch']['provider']": {'new_value': 'pants.backend.python.lint.autoflake', 'old_value': 'pants.backend.python.lint.black'
"root['name_to_api_type_info']['pants.core.goals.test.PartitionRequest']['provider']": {'new_value': 'pants.backend.shell', 'old_value': 'pants.core'
"root['name_to_api_type_info']['pants.core.goals.lint.Batch']['dependents'][0]": 'pants.backend.build_files.fmt.black',
gentle-painting-32087
07/10/2023, 3:33 PMbackend_packages = [
"pants.backend.plugin_development",
"pants.backend.build_files.fmt.black",
"pants.backend.docker",
"pants.backend.docker.lint.hadolint",
"pants.backend.python",
"pants.backend.python.lint.autoflake",
"pants.backend.python.lint.isort",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.typecheck.mypy",
"pants.backend.shell",
"pants.backend.shell.lint.shfmt",
"pants.backend.shell.lint.shellcheck",
...
But will these newly imported pkgs impact exiting init options dynamically? And is there anyway that we can lock the options during repeated pants goal run?happy-kitchen-89482
07/10/2023, 3:40 PMInitialization options changed: reinitializing scheduler...
means that Pants has detected a change to certain options since the pants daemon was last startedhappy-kitchen-89482
07/10/2023, 3:41 PMhappy-kitchen-89482
07/10/2023, 3:41 PMgentle-painting-32087
07/10/2023, 3:47 PMhappy-kitchen-89482
07/10/2023, 5:20 PMhappy-kitchen-89482
07/10/2023, 5:24 PMgentle-painting-32087
07/10/2023, 7:17 PM./pants dependents xxx
.
• Ideally, on its second run, this command should fully use the existing cache for speed.
• So, I ran this command twice in two builds, without making any changes.
• Before each run, I reviewed all parameters with “./pants help-all” and noted the config details.
• During the second run, I noticed the reinitializing scheduler
message indicating that the initialization options changed.
• To understand this better, I compared the first and second run configurations using a JSON difference tool.
◦ Here’s the link showing the comparison.gentle-painting-32087
07/10/2023, 7:18 PMhappy-kitchen-89482
07/14/2023, 9:29 PMhappy-kitchen-89482
07/15/2023, 8:36 AMhappy-kitchen-89482
07/15/2023, 8:36 AMhappy-kitchen-89482
07/15/2023, 8:36 AMgentle-painting-32087
07/15/2023, 3:54 PM2.17.0rc1
for our runs.gentle-painting-32087
07/15/2023, 3:55 PMcurved-television-6568
07/16/2023, 2:00 AMBuildConfiguration
) to options etc, I think it actually may play a role for bootstrap options etc being invalidated. Maybe. I can’t rule that out at least. Great catch if so, because I’ve had a feeling for quite some time that we get more scheduler invalidations than we ought to without having been able to pin-point why.happy-kitchen-89482
07/16/2023, 12:47 PM