The GitHub Actions job "tvm-bot" on tvm.git/main has failed. Run started by GitHub user tqchen (triggered by tqchen).
Head commit for run: c0a305dfeb0848ccd06763753eb11ace8d72e7e6 / Masahiro Hiramori <[email protected]> [TARGET] Fix round-trip reconstruction of targets with canonicalizer-generated `feature.*` attrs (#18883) Fix #18882 `TargetNode::ToConfig()` exports all target attrs, including derived `feature.*` fields set by target canonicalizers. However, `TargetInternal::FromConfig()` rejects these keys during schema validation because they are not declared in the target kind schema. This breaks round-tripping exported configs through `Target(config)`. This PR strips `feature.*` keys from the config before `ConfigSchema::Resolve`, then merges them back afterward. Canonicalizer output is authoritative — if the canonicalizer re-emits a `feature.*` key, it overwrites the preserved value. Unknown non-`feature.*` keys continue to fail validation as before. Changes: - src/target/target.cc: Extract and re-merge `feature.*` keys around schema resolution in `FromConfig()` - tests/cpp/target_test.cc: Add tests for single-target round-trip, nested-host round-trip, and continued rejection of unknown non-feature keys --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Report URL: https://github.com/apache/tvm/actions/runs/22799327431 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
