{"record":{"id":"2faa565cf6a0a196","repo":"dbt-labs/dbt-core","slug":"parse-test-metadata","errorCode":null,"errorMessage":"parse test METADATA","messagePattern":"parse test METADATA","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-ci/src/publish.rs","lineNumber":803,"sourceCode":"                \"dbt_sa_cli-2.0.0a1-py3-none-manylinux_2_17_x86_64.whl\",\n                \"dbt_sa_cli-2.0.0a2-py3-none-macosx_11_0_arm64.whl\",\n                \"dbt-2.0.0a1-py3-none-macosx_11_0_arm64.whl\",\n                \"dbt_sa_cli-2.0.0a1.txt\",\n            ],\n        );\n        let found = discover_wheels(tmp.path(), \"dbt-sa-cli\", None).unwrap();\n        assert_eq!(\n            file_names(&found),\n            vec![\n                \"dbt_sa_cli-2.0.0a1-py3-none-macosx_11_0_arm64.whl\",\n                \"dbt_sa_cli-2.0.0a1-py3-none-manylinux_2_17_x86_64.whl\",\n                \"dbt_sa_cli-2.0.0a2-py3-none-macosx_11_0_arm64.whl\",\n            ]\n        );\n    }\n\n    fn metadata_from(src: &str) -> Metadata {\n        Metadata::parse(src.as_bytes()).expect(\"parse test METADATA\")\n    }\n\n    fn field_values<'a>(fields: &'a [(&'static str, String)], name: &str) -> Vec<&'a str> {\n        fields\n            .iter()\n            .filter(|(n, _)| *n == name)\n            .map(|(_, v)| v.as_str())\n            .collect()\n    }\n\n    const SAMPLE_METADATA: &str = \"\\\nMetadata-Version: 2.4\nName: dbt-mongodb\nVersion: 0.0.1.dev1\nSummary: Reserved namespace for a future dbt Labs project.\nProject-URL: Homepage, https://github.com/dbt-labs\nProject-URL: Repository, https://github.com/dbt-labs/repo\nAuthor-email: dbt Labs <info@dbtlabs.com>","sourceCodeStart":785,"sourceCodeEnd":821,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-ci/src/publish.rs#L785-L821","documentation":"Test-helper assertion in metadata_from: parsing the METADATA file of a discovered wheel must succeed so its form fields can be asserted. Fires only if the fixture wheel's METADATA is malformed or the metadata parser regresses.","triggerScenarios":"Thrown at crates/dbt-ci/src/publish.rs:803 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Regenerate the test wheel fixture with a valid METADATA file","Check the metadata parser for regressions with the fixture input","Treat failure as a test-infrastructure issue, not a runtime error"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}