Ryan Gonzalez
33a2f70d07
system-test: Allow skipping coverage
...
Enabling coverage near-doubles the incremental build time and adds
overhead to individual tests on the order of **5-10x** or more. It's not
essential to have this for quick local system-test runs, so add an option
to disable it.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
10f942c8e0
system-test: Forward CAPTURE to docker
...
The code was only forwarding TEST, but CAPTURE is useful too.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
568a9ce4d5
docker: Preserve the go build cache
...
Otherwise, every `make docker-...` invocation will need to rebuild
everything from scratch.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
ddf415a359
docker: Fix usage with rootless podman and SELinux
...
When using rootless podman, the *current user* gets mapped to uid 0,
which results in the aptly user being unable to write to the build
directory. We can instead map the current user to the corresponding uid
in the container via `PODMAN_USERNS=keep-id`, which matches up with what
docker-wrapper wants...but then that will *enter the container as the
current uid*, which messes with the ability to set permissions on
`/var/lib/aptly`. That can be fixed by explicitly passing `--user 0:0`,
which should be a no-op on docker (since the container's default user is
already root).
Additionally, this adds `--security-opt label=disable` to avoid
permission errors when running on systems with SELinux enforcing.
2025-09-23 16:25:46 -05:00
Ryan Gonzalez
29ac9c1919
system-test: Fix crash when a comparison with a non-string value fails
...
`orig` isn't necessarily a string, so the string concatenation here can
raise a TypeError.
2025-09-23 16:25:46 -05:00
André Roth
d3bed7830c
Merge pull request #1482 from JupiterRider/tautological_condition
...
remove useless nil check
2025-08-30 19:22:52 +02:00
JupiterRider
c2d5f47643
Merge branch 'master' into tautological_condition
2025-08-30 18:51:27 +02:00
André Roth
731e92c8e4
Merge pull request #1483 from JupiterRider/gofmt
...
format the Go code with gofmt
2025-08-30 18:04:29 +02:00
André Roth
94a600c0c1
README: remove buster
2025-08-29 10:35:02 +02:00
André Roth
e1d8ae8a35
Merge pull request #1472 from Yye847/master
...
Update README.rst
2025-08-29 10:34:33 +02:00
André Roth
d3b7186dea
Merge pull request #1481 from agustinhenze/master
...
Add mutex on LinkFromPool to fix #1449
2025-08-29 09:55:15 +02:00
Agustin Henze
3608c137a0
Add mutex on LinkFromPool to fix #1449
...
This fixes the race condition that happens when you call publish
concurrently. It adds a valuable test that reproduces the error almost
deterministically, it's hard to say always but I have run this in loop
100 times and it reproduces the error consistently without the patch and
after the patch it works consistently.
2025-08-28 10:40:53 +02:00
JupiterRider
15a3efe758
add JupiterRider to AUTHORS file
2025-08-20 19:48:29 +02:00
JupiterRider
4b73ae462f
remove tautological (unnecessary) nil condition
2025-08-20 19:45:53 +02:00
JupiterRider
b49a631e0b
ran "gofmt -s -w ." to format the code
2025-08-20 19:41:26 +02:00
André Roth
8ca4cb8dcb
ci: remove EOL debian/buster
2025-08-12 14:31:44 +02:00
André Roth
8ce8f250d5
update Releasing.md
2025-08-12 14:00:57 +02:00
Yye847
3672f6f92f
Update README.rst
...
add trixie in list of available dists also in CLI part of README
2025-07-25 12:29:59 +02:00
Yye847
888a6b2caa
Update README.rst
...
add trixie in list of available dists
2025-07-25 12:23:04 +02:00
André Roth
231039e86c
Merge pull request #1466 from itayporezky/itay-api
...
Fix non related API params from mirror update
2025-07-20 23:32:41 +02:00
Itay Porezky
dc884e6052
Removing non related actions from mirror update
2025-06-29 21:55:27 +03:00
André Roth
4675589cf6
Merge pull request #1460 from aptly-dev/dependabot/pip/system/requests-2.32.4
...
build(deps): bump requests from 2.28.2 to 2.32.4 in /system
2025-06-21 15:40:30 +02:00
dependabot[bot]
32f03bfd62
build(deps): bump requests from 2.28.2 to 2.32.4 in /system
...
Bumps [requests](https://github.com/psf/requests ) from 2.28.2 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.32.4 )
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.32.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-06-10 03:23:26 +00:00
André Roth
d1bfd29dfd
Merge pull request #1458 from aptly-dev/release/1.6.2
...
Release 1.6.2
v1.6.2
2025-06-09 18:12:35 +02:00
André Roth
27ec594606
update releasing.md
2025-06-09 14:38:53 +02:00
André Roth
f652a522fd
update changelog for 1.6.2
2025-06-09 14:38:53 +02:00
André Roth
a794e87490
Merge pull request #1456 from aptly-dev/doc/gpg-api
...
doc: add swagger doc for /api/gpg/key
tests: use faketime for expired keys/signatures
2025-06-09 13:40:54 +02:00
André Roth
5b04d4fbe1
system-tests: abort on failure
2025-06-09 13:17:54 +02:00
André Roth
1566e193f6
system-test: enable faketime optionally per test
2025-06-09 13:17:54 +02:00
André Roth
601c8e9d52
tests: use faketime to prevent expired signing keys
2025-06-08 20:05:49 +02:00
André Roth
8e5707dbcc
unit-tests: allow running individual tests
2025-06-08 15:00:16 +02:00
André Roth
ad4d0c7b96
doc: add swagger doc for /api/gpg/key
...
- cleanup swagger validation errors
2025-06-08 14:24:27 +02:00
André Roth
a11e004943
Merge pull request #1452 from boxjan/master
...
bash-completion: include global options in aptly command completions
2025-05-25 22:54:45 +02:00
boxjan
f605d86a4e
bash-completion: include global options in aptly command completions
2025-05-06 10:11:46 +00:00
André Roth
f8bde63081
Merge pull request #1443 from aptly-dev/dependabot/go_modules/golang.org/x/net-0.38.0
...
Bump golang.org/x/net from 0.33.0 to 0.38.0
2025-05-01 12:17:14 +02:00
dependabot[bot]
887ce71005
Bump golang.org/x/net from 0.33.0 to 0.38.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 09:14:39 +00:00
André Roth
87233ceafe
Merge pull request #1441 from aptly-dev/dependabot/go_modules/golang.org/x/crypto-0.35.0
...
Bump golang.org/x/crypto from 0.31.0 to 0.35.0
2025-05-01 11:13:30 +02:00
André Roth
27c15680e8
Merge pull request #1445 from silkeh/fix-db-references
...
Remove corrupt package references in `db recover`
2025-05-01 10:27:42 +02:00
dependabot[bot]
cb72e2d70f
Bump golang.org/x/crypto from 0.31.0 to 0.35.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.31.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.35.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-01 08:15:38 +00:00
André Roth
2cafbc8484
Merge pull request #1439 from aptly-dev/feature/go-1.24
...
go: use version 1.24
2025-05-01 10:14:27 +02:00
Silke Hofstra
6dbb28b2b8
Add myself to authors
2025-04-30 12:21:34 +02:00
Silke Hofstra
d8a4a28259
Remove corrupt package references in db recover
...
When aptly crashes it is possible to get a corrupt database with a dangling key reference.
This results in an error with 'key not found', eg:
ERROR: unable to load package Pall example-package 1.2.3 778cf6f877bf6e2d: key not found
This change makes `db recover` fix this situation by removing the dangling references.
2025-04-30 12:21:34 +02:00
André Roth
9a217171c8
go: mod tidy
2025-04-26 13:35:49 +02:00
André Roth
c67cafcf94
Makefile: allow no cache docker build
2025-04-26 13:31:16 +02:00
André Roth
f7057a9517
go1.24: fix lint, unit and system tests
...
- development env: base on debian trixie with go1.24
- lint: run with default config
- fix lint errors
- fix unit tests
- fix system test
2025-04-26 13:29:50 +02:00
André Roth
ae5379d84a
go: use version 1.24
2025-04-25 14:20:13 +02:00
André Roth
c05068c2e8
Merge pull request #1440 from aptly-dev/bugfix/issue-1435-fix-s3-upload-unchanged-package
...
Fix upload of unchanged packages in S3 on source update of published repository
2025-04-25 13:21:10 +02:00
André Roth
22bc2f9d0f
system-tests: improve sorted compare
...
sort both aptly output and gold file. output original output for
debugging on failure.
* Makefile: enable CAPTURE=1 env variable for capturing gold files
* docker-system-test: use AWS env vars for S3 tests
* fix system tests timing issue with order of gpg logs in publish tests
2025-04-25 00:51:59 +02:00
André Roth
c07bf2b108
s3: add debug logs for commands
...
* initialize zerolog for commands
* Change default log format: remote colors and timestamp
2025-04-24 12:13:38 +02:00
André Roth
e447fc0f1e
ci: keep CI artifacts for 7 days
2025-04-21 12:01:39 +02:00