Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-09-16 07:42:05 -04:00
pkg-proxy/internal/database
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pinguinfuss ba45227e03
test(database): drop every schema table in the Postgres fixture (#349)
createTestPostgresDB dropped artifacts, versions, packages and
schema_info before calling CreateSchema, but not the migrations table.
On a database that has seen one test the migration records survive, so
the next CreateSchema fails while recording 001_add_packages_enrichment_
columns with a duplicate key on migrations_pkey. Running the package
against one Postgres therefore failed from the second Postgres-backed
test on.

Drop vulnerabilities, metadata_cache and migrations as well, so the
fixture clears every table CreateSchema creates. The package now passes
repeatedly against the same database.
2026-09-16 08:15:02 +01:00
..
database.go fix(database): set connection pool limits for Postgres (#350) 2026-09-16 08:13:38 +01:00
database_test.go test(database): drop every schema table in the Postgres fixture (#349) 2026-09-16 08:15:02 +01:00
metadata_cache_test.go fix(handler): preserve upstream content-encoding for cached metadata (#304) 2026-09-03 09:58:58 +01:00
postgres_pool_test.go fix(database): set connection pool limits for Postgres (#350) 2026-09-16 08:13:38 +01:00
queries.go Use shared artifacts at cache boundaries (#267) 2026-09-04 10:58:22 +01:00
queries_packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
schema.go fix(handler): preserve upstream content-encoding for cached metadata (#304) 2026-09-03 09:58:58 +01:00
types.go Use shared artifacts at cache boundaries (#267) 2026-09-04 10:58:22 +01:00
version_purl_test.go fix: decode PURL percent-encoding in versions and package paths (#244) 2026-08-14 10:38:08 +01:00