forgejo/models/gitea_migrations/fixtures/Test_ChangeMavenArtifactConcatenation/package_file.yml
pat-s c39a4368af refactor: migrate from lib/pq to jackc/pgx (#10219)
This PR migrates the unmaintaiend `lib/pq` library to `jackc/pgx`, which is the de-facto standard lib in go for postgres connections these days.

Some implementation notes:

We register both `pgx` and `postgresschema` driver names (for backward comp). We can't register `postgres` as this one is still used by `lib/pq` imported by `go-chi/session`, which is in use when users go for the "postgres" session type in the "Session config.
It is questionable if anyone is really using the "postgres" driver option in the session config - but for consistency, it would be good to also migrate to `pgx` there, especially as the code lives within Forgejo under [go-chi/session](https://code.forgejo.org/go-chi/session).

`pgx` supports multi-host notation in the connection string. New tests have been added therefore.

`pgx` also allows for connection string parameters such as `?default_query_exec_mode=simple_protocol`. This should possibly allow running with `pgbouncer` "transaction" mode instead of "session", which could substantially enhance Postgres query handling.

## Checklist

### Tests

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [x] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10219
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-11-30 17:47:45 +01:00

698 lines
15 KiB
YAML

- id: 1
version_id: 1
blob_id: 1
name: parent-project-1.0-20250503.071237-1.pom
lower_name: parent-project-1.0-20250503.071237-1.pom
composite_key: ""
is_lead: true
created_unix: 1746256357
- id: 3
version_id: 2
blob_id: 3
name: sub-module-1.0-20250503.071237-1.pom
lower_name: sub-module-1.0-20250503.071237-1.pom
composite_key: ""
is_lead: true
created_unix: 1746256358
- id: 4
version_id: 2
blob_id: 4
name: sub-module-1.0-20250503.071237-1.jar
lower_name: sub-module-1.0-20250503.071237-1.jar
composite_key: ""
is_lead: false
created_unix: 1746256358
- id: 6
version_id: 3
blob_id: 6
name: parent-project-7.0.0.pom
lower_name: parent-project-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256360
- id: 7
version_id: 4
blob_id: 7
name: sub-module-7.0.0.pom
lower_name: sub-module-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256361
- id: 8
version_id: 4
blob_id: 8
name: sub-module-7.0.0.jar
lower_name: sub-module-7.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256361
- id: 9
version_id: 5
blob_id: 9
name: parent-project-7.0.0.pom
lower_name: parent-project-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256364
- id: 10
version_id: 6
blob_id: 7
name: sub-module-7.0.0.pom
lower_name: sub-module-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256365
- id: 11
version_id: 6
blob_id: 10
name: sub-module-7.0.0.jar
lower_name: sub-module-7.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256365
- id: 12
version_id: 7
blob_id: 11
name: bar-1.0-20250503.071248-1.pom
lower_name: bar-1.0-20250503.071248-1.pom
composite_key: ""
is_lead: true
created_unix: 1746256367
- id: 14
version_id: 8
blob_id: 13
name: bar-7.0.0.pom
lower_name: bar-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256370
- id: 15
version_id: 7
blob_id: 14
name: -bar-1.0-20250503.071253-2.pom
lower_name: -bar-1.0-20250503.071253-2.pom
composite_key: ""
is_lead: true
created_unix: 1746256373
- id: 17
version_id: 8
blob_id: 16
name: -bar-7.0.0.pom
lower_name: -bar-7.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256375
- id: 18
version_id: 1
blob_id: 1
name: parent-project-1.0-20250503.071306-2.pom
lower_name: parent-project-1.0-20250503.071306-2.pom
composite_key: ""
is_lead: true
created_unix: 1746256385
- id: 20
version_id: 2
blob_id: 3
name: sub-module-1.0-20250503.071306-2.pom
lower_name: sub-module-1.0-20250503.071306-2.pom
composite_key: ""
is_lead: true
created_unix: 1746256386
- id: 21
version_id: 2
blob_id: 18
name: sub-module-1.0-20250503.071306-2.jar
lower_name: sub-module-1.0-20250503.071306-2.jar
composite_key: ""
is_lead: false
created_unix: 1746256386
- id: 23
version_id: 9
blob_id: 20
name: parent-project-8.0.0.pom
lower_name: parent-project-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256389
- id: 24
version_id: 10
blob_id: 21
name: sub-module-8.0.0.pom
lower_name: sub-module-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256390
- id: 25
version_id: 10
blob_id: 22
name: sub-module-8.0.0.jar
lower_name: sub-module-8.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256390
- id: 26
version_id: 11
blob_id: 23
name: parent-project-8.0.0.pom
lower_name: parent-project-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256393
- id: 27
version_id: 12
blob_id: 21
name: sub-module-8.0.0.pom
lower_name: sub-module-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256394
- id: 28
version_id: 12
blob_id: 24
name: sub-module-8.0.0.jar
lower_name: sub-module-8.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256394
- id: 29
version_id: 7
blob_id: 11
name: bar-1.0-20250503.071317-3.pom
lower_name: bar-1.0-20250503.071317-3.pom
composite_key: ""
is_lead: true
created_unix: 1746256397
- id: 31
version_id: 13
blob_id: 26
name: bar-8.0.0.pom
lower_name: bar-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256399
- id: 32
version_id: 7
blob_id: 14
name: -bar-1.0-20250503.071323-4.pom
lower_name: -bar-1.0-20250503.071323-4.pom
composite_key: ""
is_lead: true
created_unix: 1746256402
- id: 34
version_id: 13
blob_id: 28
name: -bar-8.0.0.pom
lower_name: -bar-8.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256405
- id: 35
version_id: 1
blob_id: 1
name: parent-project-1.0-20250503.071335-3.pom
lower_name: parent-project-1.0-20250503.071335-3.pom
composite_key: ""
is_lead: true
created_unix: 1746256415
- id: 37
version_id: 2
blob_id: 3
name: sub-module-1.0-20250503.071335-3.pom
lower_name: sub-module-1.0-20250503.071335-3.pom
composite_key: ""
is_lead: true
created_unix: 1746256416
- id: 38
version_id: 2
blob_id: 30
name: sub-module-1.0-20250503.071335-3.jar
lower_name: sub-module-1.0-20250503.071335-3.jar
composite_key: ""
is_lead: false
created_unix: 1746256416
- id: 40
version_id: 14
blob_id: 32
name: parent-project-9.0.0.pom
lower_name: parent-project-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256419
- id: 41
version_id: 15
blob_id: 33
name: sub-module-9.0.0.pom
lower_name: sub-module-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256420
- id: 42
version_id: 15
blob_id: 34
name: sub-module-9.0.0.jar
lower_name: sub-module-9.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256420
- id: 43
version_id: 16
blob_id: 35
name: parent-project-9.0.0.pom
lower_name: parent-project-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256423
- id: 44
version_id: 17
blob_id: 33
name: sub-module-9.0.0.pom
lower_name: sub-module-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256424
- id: 45
version_id: 17
blob_id: 36
name: sub-module-9.0.0.jar
lower_name: sub-module-9.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256424
- id: 46
version_id: 7
blob_id: 11
name: bar-1.0-20250503.071347-5.pom
lower_name: bar-1.0-20250503.071347-5.pom
composite_key: ""
is_lead: true
created_unix: 1746256427
- id: 48
version_id: 18
blob_id: 38
name: bar-9.0.0.pom
lower_name: bar-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256429
- id: 49
version_id: 7
blob_id: 14
name: -bar-1.0-20250503.071353-6.pom
lower_name: -bar-1.0-20250503.071353-6.pom
composite_key: ""
is_lead: true
created_unix: 1746256432
- id: 51
version_id: 18
blob_id: 40
name: -bar-9.0.0.pom
lower_name: -bar-9.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256435
- id: 52
version_id: 1
blob_id: 1
name: parent-project-1.0-20250503.071405-4.pom
lower_name: parent-project-1.0-20250503.071405-4.pom
composite_key: ""
is_lead: true
created_unix: 1746256445
- id: 54
version_id: 2
blob_id: 3
name: sub-module-1.0-20250503.071405-4.pom
lower_name: sub-module-1.0-20250503.071405-4.pom
composite_key: ""
is_lead: true
created_unix: 1746256446
- id: 55
version_id: 2
blob_id: 42
name: sub-module-1.0-20250503.071405-4.jar
lower_name: sub-module-1.0-20250503.071405-4.jar
composite_key: ""
is_lead: false
created_unix: 1746256446
- id: 57
version_id: 19
blob_id: 44
name: parent-project-10.0.0.pom
lower_name: parent-project-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256449
- id: 58
version_id: 20
blob_id: 45
name: sub-module-10.0.0.pom
lower_name: sub-module-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256450
- id: 59
version_id: 20
blob_id: 46
name: sub-module-10.0.0.jar
lower_name: sub-module-10.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256450
- id: 60
version_id: 21
blob_id: 47
name: parent-project-10.0.0.pom
lower_name: parent-project-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256452
- id: 61
version_id: 22
blob_id: 45
name: sub-module-10.0.0.pom
lower_name: sub-module-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256453
- id: 62
version_id: 22
blob_id: 48
name: sub-module-10.0.0.jar
lower_name: sub-module-10.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256453
- id: 63
version_id: 7
blob_id: 11
name: bar-1.0-20250503.071416-7.pom
lower_name: bar-1.0-20250503.071416-7.pom
composite_key: ""
is_lead: true
created_unix: 1746256456
- id: 65
version_id: 23
blob_id: 50
name: bar-10.0.0.pom
lower_name: bar-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256459
- id: 66
version_id: 7
blob_id: 14
name: -bar-1.0-20250503.071422-8.pom
lower_name: -bar-1.0-20250503.071422-8.pom
composite_key: ""
is_lead: true
created_unix: 1746256461
- id: 68
version_id: 23
blob_id: 52
name: -bar-10.0.0.pom
lower_name: -bar-10.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256464
- id: 69
version_id: 1
blob_id: 1
name: parent-project-1.0-20250503.071435-5.pom
lower_name: parent-project-1.0-20250503.071435-5.pom
composite_key: ""
is_lead: true
created_unix: 1746256474
- id: 70
version_id: 1
blob_id: 53
name: maven-metadata.xml
lower_name: maven-metadata.xml
composite_key: ""
is_lead: false
created_unix: 1746256474
- id: 71
version_id: 2
blob_id: 3
name: sub-module-1.0-20250503.071435-5.pom
lower_name: sub-module-1.0-20250503.071435-5.pom
composite_key: ""
is_lead: true
created_unix: 1746256475
- id: 72
version_id: 2
blob_id: 54
name: sub-module-1.0-20250503.071435-5.jar
lower_name: sub-module-1.0-20250503.071435-5.jar
composite_key: ""
is_lead: false
created_unix: 1746256475
- id: 73
version_id: 2
blob_id: 55
name: maven-metadata.xml
lower_name: maven-metadata.xml
composite_key: ""
is_lead: false
created_unix: 1746256476
- id: 74
version_id: 24
blob_id: 56
name: parent-project-11.0.0.pom
lower_name: parent-project-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256478
- id: 75
version_id: 25
blob_id: 57
name: sub-module-11.0.0.pom
lower_name: sub-module-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256479
- id: 76
version_id: 25
blob_id: 58
name: sub-module-11.0.0.jar
lower_name: sub-module-11.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256479
- id: 77
version_id: 26
blob_id: 59
name: parent-project-11.0.0.pom
lower_name: parent-project-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256482
- id: 78
version_id: 27
blob_id: 57
name: sub-module-11.0.0.pom
lower_name: sub-module-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256483
- id: 79
version_id: 27
blob_id: 60
name: sub-module-11.0.0.jar
lower_name: sub-module-11.0.0.jar
composite_key: ""
is_lead: false
created_unix: 1746256483
- id: 80
version_id: 7
blob_id: 11
name: bar-1.0-20250503.071446-9.pom
lower_name: bar-1.0-20250503.071446-9.pom
composite_key: ""
is_lead: true
created_unix: 1746256486
- id: 82
version_id: 28
blob_id: 62
name: bar-11.0.0.pom
lower_name: bar-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256488
- id: 83
version_id: 7
blob_id: 14
name: -bar-1.0-20250503.071451-10.pom
lower_name: -bar-1.0-20250503.071451-10.pom
composite_key: ""
is_lead: true
created_unix: 1746256491
- id: 84
version_id: 7
blob_id: 63
name: maven-metadata.xml
lower_name: maven-metadata.xml
composite_key: ""
is_lead: false
created_unix: 1746256491
- id: 85
version_id: 28
blob_id: 64
name: -bar-11.0.0.pom
lower_name: -bar-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746256494
# broken uploads
- id: 86
version_id: 29
blob_id: 75
name: br-repo-jooq-1.2.4-sources.jar
lower_name: br-repo-jooq-1.2.4-sources.jar
composite_key: ""
is_lead: false
created_unix: 174625649444986
- id: 87
version_id: 29
blob_id: 65
name: br-rest-webmvc-1.2.4.jar
lower_name: br-rest-webmvc-1.2.4.jar
composite_key: ""
is_lead: false
created_unix: 174625649446161
- id: 88
version_id: 29
blob_id: 68
name: br-openapi-base-1.2.4.pom
lower_name: br-openapi-base-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649444734
- id: 89
version_id: 29
blob_id: 69
name: br-openapi-base-1.2.4.jar
lower_name: br-openapi-base-1.2.4.jar
composite_key: ""
is_lead: false
created_unix: 174625649444746
- id: 90
version_id: 29
blob_id: 70
name: br-openapi-base-1.2.4-sources.jar
lower_name: br-openapi-base-1.2.4-sources.jar
composite_key: ""
is_lead: false
created_unix: 174625649444775
- id: 91
version_id: 29
blob_id: 78
name: br-parent-1.2.4.pom
lower_name: br-parent-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649444852
- id: 92
version_id: 29
blob_id: 76
name: br-repo-in-memory-1.2.4.pom
lower_name: br-repo-in-memory-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649444900
- id: 93
version_id: 29
blob_id: 73
name: br-repo-in-memory-1.2.4.jar
lower_name: br-repo-in-memory-1.2.4.jar
composite_key: ""
is_lead: false
created_unix: 174625649444911
- id: 94
version_id: 29
blob_id: 77
name: br-repo-in-memory-1.2.4-sources.jar
lower_name: br-repo-in-memory-1.2.4-sources.jar
composite_key: ""
is_lead: false
created_unix: 174625649444922
- id: 95
version_id: 29
blob_id: 74
name: br-repo-jooq-1.2.4.pom
lower_name: br-repo-jooq-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649444953
- id: 96
version_id: 29
blob_id: 67
name: br-repo-jooq-1.2.4.jar
lower_name: br-repo-jooq-1.2.4.jar
composite_key: ""
is_lead: false
created_unix: 174625649444969
- id: 97
version_id: 29
blob_id: 71
name: br-rest-webmvc-1.2.4-sources.jar
lower_name: br-rest-webmvc-1.2.4-sources.jar
composite_key: ""
is_lead: false
created_unix: 174625649446161
- id: 98
version_id: 29
blob_id: 66
name: br-rest-webmvc-1.2.4.pom
lower_name: br-rest-webmvc-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649446195
- id: 99
version_id: 29
blob_id: 72
name: br-root-1.2.4.pom
lower_name: br-root-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649446217
- id: 100
version_id: 30
blob_id: 66
name: br-rest-webmvc-1.2.4.pom
lower_name: br-rest-webmvc-1.2.4.pom
composite_key: ""
is_lead: true
created_unix: 174625649446311
- id: 101
version_id: 30
blob_id: 65
name: br-rest-webmvc-1.2.4.jar
lower_name: br-rest-webmvc-1.2.4.jar
composite_key: ""
is_lead: false
created_unix: 174625649446312
- id: 102
version_id: 30
blob_id: 71
name: br-rest-webmvc-1.2.4-sources.jar
lower_name: br-rest-webmvc-1.2.4-sources.jar
composite_key: ""
is_lead: false
created_unix: 174625649446312
# collision
- id: 103
version_id: 31
blob_id: 79
name: bar-art-11.0.0.pom
lower_name: bar-art-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746280832
- id: 104
version_id: 31
blob_id: 80
name: art-11.0.0.pom
lower_name: art-11.0.0.pom
composite_key: ""
is_lead: true
created_unix: 1746280843