`apt.packages` inspector fails to inspect a specific Packages file
Metadata
Current evaluation
Fixed in PR #251 (commit d8f1d30), which added ubuntu-ports support and corrected APT Packages inspection for Built-Using fields.
Resolution: closed resolved
Reason: PR #251 was merged as commit d8f1d30. Its APT changes allow ubuntu-ports and adjust Built-Using detection, matching the reported Packages-file failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
The file at http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/universe/binary-arm64/by-hash/SHA256/ab5ba80fba6ce50f9d11f3af8ff0ddcc7b40780f0ccca6a4a5277f9c7d6622f9 fails inspection.
### To Reproduce
.
### Relevant log output
```shell
{
"artefact-metadata-version": "0.1",
"request-inspection": {
"apt.packages": {
"opinion": "Pending",
"reason": "valid URL for Packages file",
"annotations": {
"architecture": "arm64",
"component": "universe",
"dist": "focal-security",
"repository": "http://ftpmaster.internal/ubuntu"
}
},
"apt.release": {
"opinion": "Pending",
"reason": "valid URL for packages file",
"annotations": {
"architecture": "arm64",
"component": "universe",
"dist": "focal-security",
"origin": "http://ftpmaster.internal",
"repository": "http://ftpmaster.internal/ubuntu"
}
}
},
"response-inspection": {
"default": {
"opinion": "Unknown",
"reason": "the artefact file content was not recognized by any format inspector"
}
},
"result": "Rejected",
"metadata": {
"type": "application/x-xz",
"sha1": "981b65187782e76107dc72497b3087fb8e6d8eed",
"sha256": "ab5ba80fba6ce50f9d11f3af8ff0ddcc7b40780f0ccca6a4a5277f9c7d6622f9",
"size": 933616,
"name": "",
"version": "",
"vendor": "",
"description": "",
"author": "",
"license": ""
},
"downloads": [
{
"start-time": "2024-10-03T16:33:29.062558529Z",
"end-time": "2024-10-03T16:33:29.139943868Z",
"method": "GET",
"url": "http://ftpmaster.internal/ubuntu/dists/focal-security/universe/binary-arm64/by-hash/SHA256/ab5ba80fba6ce50f9d11f3af8ff0ddcc7b40780f0ccca6a4a5277f9c7d6622f9",
"address": "10.144.4.246:47870",
"user-agent": "Debian APT-HTTP/1.3 (2.0.10)",
"request-header": {
"Accept": [
"text/*"
],
"Cache-Control": [
"max-age=0"
],
"Connection": [
"close"
],
"User-Agent": [
"Debian APT-HTTP/1.3 (2.0.10)"
],
"X-Fetch-Session-Id": [
"9141f2b510e94878a88036f717ec5d28"
]
},
"status-code": 200,
"status": "200 OK",
"content-type": "",
"response-header": {
"Accept-Ranges": [
"bytes"
],
"Content-Length": [
"933616"
],
"Date": [
"Thu, 03 Oct 2024 16:33:29 GMT"
],
"Etag": [
"\"e3ef0-6239206bc6d79\""
],
"Last-Modified": [
"Thu, 03 Oct 2024 12:52:25 GMT"
],
"Server": [
"Apache/2.4.41 (Ubuntu)"
]
}
}
]
}
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in PR #251 (commit d8f1d30), which added ubuntu-ports support and corrected APT Packages inspection for Built-Using fields. | |
| stealth/space-bunny-alpha | — | closed stale | No verified code fix or superseding work was found; closure details are unavailable beyond the bot’s CRAFT-3522 ticket-creation notice. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. The report was deferred to internal tracking via Jira ticket CRAFT-3522. The apt.packages inspector failed to recognize the file format, and no code changes were applied. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/fetch-service#251
(confidence 95%)
Merged commit d8f1d30 specifically updates the APT inspector for ubuntu-ports and Built-Using fields.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #237 apt.packages inspector fails to parse Packages file | fetch-service | closed | Closed as a duplicate of #240; multiline APT package fields were fixed by PR #251 in commit d8f1d30. | |
| #251 fix(i/apt): check for built-using and allow ubuntu-ports | fetch-service | merged | Merged #251 fixed apt.packages detection by checking Built-Using and allowing ubuntu-ports origins and paths, resolving #246. |