profiles: deterministic setting_id from vendor/type/name (#14432)

* profiles: enforce globally-unique, per-vendor-namespaced setting_id

Many non-Bambu vendors copied Bambu's generic setting_ids (GFSA04 alone
appeared in 1557 files), so setting_id was not globally unique. This
namespaces every vendor's ids and reserves Bambu/OrcaFilamentLibrary space.

- Reserve "G*" (Bambu) and "O*" (OrcaFilamentLibrary) id spaces.
- Assign each other vendor a 2-char prefix (first+last letter, collision
  resolved) and renumber every instantiated preset to <PREFIX><NNNN>.
- Strip setting_id from base profiles (instantiation:false) per Bambu's
  convention; assign one to instantiated presets that lacked it.
- Remove the pre-existing misspelled "settings_id" key (91 files).
- filament_id is left untouched (it is a per-material id).
- Add one-time migration script scripts/assign_vendor_setting_ids.py with a
  persisted registry resources/profiles/vendor_prefixes.json. Re-runs freeze
  existing ids; only new vendors/profiles get new ids.
- Bump version in each changed vendor index file.
- Extend scripts/orca_extra_profile_check.py with a CI guard: global
  uniqueness, in-namespace, no base setting_id, no gaps, no settings_id typo.

7425 profile files changed across 61 vendors; 0 cross-vendor collisions;
validator clean; migration idempotent. BBL and OrcaFilamentLibrary id spaces
untouched.

* profiles: add setting_id authoring guide for new vendors / profiles

* profiles: drop in-repo README; setting_id guide now lives in the wiki

* profiles: derive setting_id deterministically from vendor/type/name

* bump profile version
This commit is contained in:
SoftFever
2026-06-27 20:11:25 +08:00
committed by GitHub
parent 3b58217b47
commit 8cb2e4e01e
7876 changed files with 8152 additions and 6541 deletions

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone ABS @0.2 nozzle",
"from": "system",
"setting_id": "sNet9szMIhVY4WoS",
"instantiation": "true",
"inherits": "Eryone ABS",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone ABS-CF @0.2 nozzle",
"from": "system",
"setting_id": "a7qk6VtkbJziQHZo",
"instantiation": "true",
"inherits": "Eryone ABS-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone ABS-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA11",
"setting_id": "f4VPJtNcZOIIKyDz",
"filament_id": "EFL81",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone ABS",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA01",
"setting_id": "JfQiR5qK9Ue3JDt5",
"filament_id": "EFL91",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone ASA @0.2 nozzle",
"from": "system",
"setting_id": "SopkMvsT3DXzJ9Ky",
"instantiation": "true",
"inherits": "Eryone ASA",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone ASA-CF @0.2 nozzle",
"from": "system",
"setting_id": "yBYSvDH0djt4S123",
"instantiation": "true",
"inherits": "Eryone ASA-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone ASA-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA82",
"setting_id": "wSiMHM1kTIgJ2gCt",
"filament_id": "EFL82",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone ASA",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA02",
"setting_id": "hu9uQy9zFgemTBjQ",
"filament_id": "EFL92",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PA @0.2 nozzle",
"from": "system",
"setting_id": "zavqdFwS2fsajkps",
"instantiation": "true",
"inherits": "Eryone PA",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PA-CF @0.2 nozzle",
"from": "system",
"setting_id": "wbnmjqeccJS209GO",
"instantiation": "true",
"inherits": "Eryone PA-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PA-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA72",
"setting_id": "LIXTvjHAxtaHIO8s",
"filament_id": "EFL72",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PA-GF @0.2 nozzle",
"from": "system",
"setting_id": "J7Oy1mm1szLspwBb",
"instantiation": "true",
"inherits": "Eryone PA-GF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PA-GF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA73",
"setting_id": "4srMOoPcAlQygIY8",
"filament_id": "EFL73",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PA",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA71",
"setting_id": "oqzAdvvf6jdQTb4M",
"filament_id": "EFL71",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PETG @0.2 nozzle",
"from": "system",
"setting_id": "cATziDM4CjP6MiC4",
"instantiation": "true",
"inherits": "Eryone PETG",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PETG-CF @0.2 nozzle",
"from": "system",
"setting_id": "wsR57UlUrO2aW2Lc",
"instantiation": "true",
"inherits": "Eryone PETG-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PETG-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA43",
"setting_id": "Xp95jFFK5QSP3OoR",
"filament_id": "EFL43",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PETG",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA03",
"setting_id": "rJCPgQiIXRsfQwWY",
"filament_id": "EFL93",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PLA @0.2 nozzle",
"from": "system",
"setting_id": "kJhDYIHtXhAd4M6v",
"instantiation": "true",
"inherits": "Eryone PLA",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PLA-CF @0.2 nozzle",
"from": "system",
"setting_id": "ghNuMkVp1164Fw1Z",
"instantiation": "true",
"inherits": "Eryone PLA-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PLA-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA40",
"setting_id": "t726eLsJ87OjqUYk",
"filament_id": "EFL40",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PLA",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA00",
"setting_id": "nTSleDxF7HWxBeK9",
"filament_id": "EFL90",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PP @0.2 nozzle",
"from": "system",
"setting_id": "ePXvfc5tmC3GnZPe",
"instantiation": "true",
"inherits": "Eryone PP",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone PP-CF @0.2 nozzle",
"from": "system",
"setting_id": "os5ZrNT1utAczy2F",
"instantiation": "true",
"inherits": "Eryone PP-CF",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PP-CF",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA33",
"setting_id": "GuuXzP9ILCWG5cxt",
"filament_id": "EFL33",
"instantiation": "true",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone PP",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA43",
"setting_id": "sZF6qOPqqu88Yu5e",
"filament_id": "EFL43",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone Silk PLA @0.2 nozzle",
"from": "system",
"setting_id": "RS6yfcZ6PbJzGrUc",
"instantiation": "true",
"inherits": "Eryone Silk PLA",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone Silk PLA",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA041",
"setting_id": "S3s3NQAoScvfyHh3",
"filament_id": "EFL941",
"instantiation": "true",
"compatible_printers": [

View File

@@ -2,6 +2,7 @@
"type": "filament",
"name": "Eryone TPU @0.2 nozzle",
"from": "system",
"setting_id": "6Le5wRz6cFfKcPaz",
"instantiation": "true",
"inherits": "Eryone TPU",
"compatible_printers": [

View File

@@ -3,7 +3,7 @@
"name": "Eryone TPU",
"inherits": "Eryone Standard PLA",
"from": "system",
"setting_id": "EFSA05",
"setting_id": "ci6MWQPZNf09qrOJ",
"filament_id": "EFL95",
"instantiation": "true",
"compatible_printers": [