Andrey Smirnov
77d7c3871a
Consistently use transactions to update database
...
For any action which is multi-step (requires updating more than 1 DB
key), use transaction to make update atomic.
Also pack big chunks of updates (importing packages for importing and
mirror updates) into single transaction to improve aptly performance and
get some isolation.
Note that still layers up (Collections) provide some level of isolation,
so this is going to shine with the future PRs to remove collection
locks.
Spin-off of #459
2019-08-11 00:11:53 +03:00
Andrey Smirnov
67e38955ae
Refactor database code to support standalone batches, transactions.
...
This is spin-off of changes from #459 .
Transactions are not being used yet, but batches are updated to work
with the new API.
`database/` package was refactored to split abstract interfaces and
implementation via goleveldb. This should make it easier to implement
new database types.
2019-08-09 00:46:40 +03:00
Andrey Smirnov
26098f6c8d
Print redirects being followed, drop mirror.yandex.ru.
...
Use CDN-backed Debian mirror to make tests run faster hopefully for
everyone. Redirects might be important to know what exactly is going on
when items are being downloaded.
2019-08-07 21:10:04 +03:00
Andrey Smirnov
021b6f694b
Fix flakey tests related to identity name ordering.
2019-08-07 20:47:52 +03:00
Andrey Smirnov
f0a370db24
Rework HTTP downloader retry logic
...
Apply retries as global, config-level option `downloadRetries` so that
it can be applied to any aptly command which downloads objects.
Unwrap `errors.Wrap` which is used in downloader.
Unwrap `*url.Error` which should be the actual error returned from the
HTTP client, catch more cases, be more specific around failures.
2019-08-07 20:23:05 +03:00
Andrey Smirnov
2e7f624b34
Add test for publishing with non-empty Origin & Label
...
See also #848
2019-07-19 22:58:56 +03:00
Shengjing Zhu
b63c0c7dfc
Update AUTHORS
2019-07-15 21:51:09 +03:00
Shengjing Zhu
906cbf1e6f
Fix time.Time msgpack decoding backwards compatibility
...
See https://github.com/ugorji/go-codec/issues/269
2019-07-15 21:51:09 +03:00
Shengjing Zhu
5aefc741f2
Add codec tag to fields which are ignored in new codec package
...
github.com/ugorji/go/codec 1.1.4 ignores field with json:"-" tag
2019-07-15 21:51:09 +03:00
Shengjing Zhu
5c28ea3064
Update github.com/ugorji/go to v1.1.4
2019-07-15 21:51:09 +03:00
Andrey Smirnov
70cd11e30f
Revert "Don't remove API file socket if it exists and it's usable"
...
See PR #807
Fixes : #849
This reverts commit 22848b010d .
2019-07-13 00:45:54 +03:00
Andrey Smirnov
94a72b23ff
Update Go AWS SDK to the latest version
2019-07-13 00:19:00 +03:00
Andrey Smirnov
d08be990ef
Skip uploading release versions of aptly to nightly repo
...
This breaks releases, as two versions of the package with same version
might end up in internal.aptly.info.
2019-07-11 01:52:00 +03:00
Andrey Smirnov
ca5b7758ce
Print when test is skipped
2019-07-11 00:49:36 +03:00
Andrey Smirnov
bb1def2910
Try Travis on xenial workers
2019-07-11 00:16:20 +03:00
Andrey Smirnov
673abae1be
Update system tests after Debian buster was released.
2019-07-10 22:27:11 +03:00
Andrey Smirnov
3b8c067e70
Merge pull request #850 from smira/no-bintray
...
Bintray no longer used for artifacts. [ci skip]
2019-07-10 19:54:09 +03:00
Andrey Smirnov
528459eeb2
Bintray no longer used for artifacts. [ci skip]
2019-07-10 19:53:07 +03:00
Andrey Smirnov
bc1ab4e55c
Merge pull request #847 from smira/fix-repo-name
...
Fix repo name in release script
v1.4.0
2019-07-06 16:03:14 +03:00
Andrey Smirnov
5aefd0b393
Fix repo name in release script
2019-07-06 16:02:43 +03:00
Andrey Smirnov
7bc53a4253
Merge pull request #846 from smira/fix-releases-api-key
...
Fix releases API key
2019-07-06 00:05:25 +03:00
Andrey Smirnov
8b12dccd76
Fix releases API key
2019-07-06 00:04:46 +03:00
Andrey Smirnov
952afb6040
Merge pull request #845 from smira/upload-artifacts-fix
...
Fix upload artifacts script to fail, add release upload script
2019-07-05 22:02:59 +03:00
Andrey Smirnov
56ca5e9e62
Temporary disable test as linux.dell.com is NXDOMAIN
2019-07-05 21:32:41 +03:00
Andrey Smirnov
a834461752
Fix upload artifacts script to fail, add release upload script
...
This should improve reliability
2019-07-05 20:08:31 +03:00
Andrey Smirnov
37166af321
Merge pull request #842 from aptly-dev/bump-go-version
...
Bump Go versions for Travis, fix tests
2019-07-04 00:44:52 +03:00
Andrey Smirnov
2c91bcdc30
Bump Go versions for Travis, fix tests
...
Replace gometalinter with golangci-lint.
Fix system tests (wheezy is gone, replace with stretch).
Fix linter warnings.
2019-07-04 00:16:12 +03:00
Shengjing Zhu
abdd341369
Update changelog for 1.3.0+ds1-2.2 release
2019-04-16 00:18:38 +08:00
Shengjing Zhu
a802160318
Update debian/NEWS about DB compatibility
2019-04-16 00:18:08 +08:00
Shengjing Zhu
a5c7bde1a3
Fix struct field tag typo
2019-04-16 00:12:28 +08:00
Shengjing Zhu
217a8a8e92
Add patch to fix DB backwards compatibility ( Closes : #911924 )
2019-04-16 00:04:05 +08:00
Tobias Frost
e85459c529
NMU to fix #923866
2019-04-05 17:40:24 +02:00
Andrey Smirnov
e2d6a53de5
Merge pull request #803 from stb-tester/deterministic-stanza-WriteTo
...
Stanza.WriteTo: Sort extra fields alphabetically
2019-01-25 17:34:34 +03:00
Andrey Smirnov
89537b1521
Merge branch 'master' into deterministic-stanza-WriteTo
2019-01-25 01:27:31 +03:00
Oliver Sauder
152b3cae90
Merge pull request #808 from aptly-dev/797-no-such-bucket-s3
...
Ignore 'NoSuchBucket' error when deleting S3 objects
2019-01-24 08:09:29 +01:00
Andrey Smirnov
f104e53fd4
Ignore 'NoSuchBucket' error when deleting S3 objects
...
Also ignore any removal errors when `-force-drop` is used.
2019-01-23 18:17:08 +03:00
William Manley
fd99ae0e59
Merge branch 'master' into deterministic-stanza-WriteTo
2019-01-21 13:48:07 +00:00
Andrey Smirnov
4b6c159e3a
Vendor update github.com/pkg/errors
2019-01-20 22:54:13 +03:00
Andrey Smirnov
50f8cfbc15
Merge pull request #807 from aptly-dev/806-file-socket
...
Don't remove API file socket if it exists and usable
2019-01-20 22:52:30 +03:00
Andrey Smirnov
22848b010d
Don't remove API file socket if it exists and it's usable
2019-01-20 00:01:44 +03:00
Andrey Smirnov
3b5840e248
Fix linter list and fix errors discovered by new staticcheck
2019-01-20 00:01:17 +03:00
William Manley
f955707201
Add William Manley (@wmanley) to AUTHORS
...
My measly contribution hardly merits it but it's a requirement in
`CONTRIBUTING.md`.
2019-01-08 15:14:39 +00:00
William Manley
86dc10028f
Stanza.WriteTo: Sort extra fields alphabetically
...
This makes the output deterministic. This is important to me as I am
using `Packages` index files as a kind of lockfile and committing it
to my git repository. Without this we get a lot of noise in the diff
whenever the file is regenerated because
[go randomises map iteration order][1].
[1]: https://nathanleclaire.com/blog/2014/04/27/a-surprising-feature-of-golang-that-colored-me-impressed/
2019-01-08 15:12:34 +00:00
aviau
2edaf38386
warn about db incompatibility
2018-10-26 13:22:48 -04:00
aviau
cc7f75370f
d/changelog: close #902128 (remove vendor/*)
2018-10-15 12:16:16 -04:00
aviau
829d9924c3
add more missing dependencies
2018-10-15 12:07:27 -04:00
aviau
164cefe2a2
s/UNRELEASED/unstable/
2018-10-15 11:54:13 -04:00
aviau
9ac2e25739
d/rules: remove trailing whitespace
2018-10-15 11:53:50 -04:00
aviau
1de4d69922
Use Debian's uuid pacakge
2018-10-15 11:52:43 -04:00
aviau
dbc5ba9458
add even more dependencies
2018-10-15 11:45:18 -04:00