Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/s3 publshing #12

Closed
wants to merge 199 commits into from
Closed

Fix/s3 publshing #12

wants to merge 199 commits into from

Commits on Jan 21, 2022

  1. Add support for Azure storage as a publishing backend

    This adds a new configuration setting: AzurePublishEndpoints, similar
    to the existing S3PublishEndpoints and SwiftPublishEndpoints.
    
    For each endpoint, the following has to be defined:
     - accountName
     - accountKey
     - container
     - prefix
    
    Azure tests require the following environment variables to be set:
     - AZURE_STORAGE_ACCOUNT
     - AZURE_STORAGE_ACCESS_KEY
    
    With either of these not set, Azure-specific tests are skipped.
    chuan authored and lbolla committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    bb42a21 View commit details
    Browse the repository at this point in the history
  2. Fix the storage string format.

    Co-authored-by: Andrej Shadura <andrew@shadura.me>
    2 people authored and lbolla committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    a778ff8 View commit details
    Browse the repository at this point in the history
  3. Include AzurePublishEndpoints in the manpage template

    Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
    andrewshadura authored and lbolla committed Jan 21, 2022
    Configuration menu
    Copy the full SHA
    4a6d53e View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. every go routine needs to have its own collection factory

    this is needed so concurrent reads and writes are possible.
    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    208a215 View commit details
    Browse the repository at this point in the history
  2. Removed obsolete RWMutexes

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    1e7731c View commit details
    Browse the repository at this point in the history
  3. Database changes of resources need to be atomic

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    f7f42a9 View commit details
    Browse the repository at this point in the history
  4. db batch may not be a global resource

    This way db usage is safe.
    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    1c7c07a View commit details
    Browse the repository at this point in the history
  5. Solving progress not safe issue for api

    Progress is not safe so for api its always nil and
    code needs to take care of this
    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    25d7d7c View commit details
    Browse the repository at this point in the history
  6. Fixed not running tests

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    e63d74d View commit details
    Browse the repository at this point in the history
  7. Add task api and resource locking ability

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    6ab5e60 View commit details
    Browse the repository at this point in the history
  8. Added mirror api based on task list

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    d7ccf95 View commit details
    Browse the repository at this point in the history
  9. Added gpg api so mirror updates are fully functional from api

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    b0ab8f4 View commit details
    Browse the repository at this point in the history
  10. Combine publish list progress into one

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    3cd168c View commit details
    Browse the repository at this point in the history
  11. Add publish output progress counting remaining number of packages

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    f09a273 View commit details
    Browse the repository at this point in the history
  12. Add db cleanup api

    Oliver Sauder authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    b4efe6a View commit details
    Browse the repository at this point in the history
  13. log download retries

    neolynx authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    c052888 View commit details
    Browse the repository at this point in the history
  14. api: allow renaming repos

    neolynx authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    d13de04 View commit details
    Browse the repository at this point in the history
  15. fix gpg keys

    neolynx authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    8e02a03 View commit details
    Browse the repository at this point in the history
  16. Use verifier from context

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    faf2d58 View commit details
    Browse the repository at this point in the history
  17. api gpg: show gpg command

    neolynx authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    2b7bb24 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    19f7b0f View commit details
    Browse the repository at this point in the history
  19. mirror: interrupt goroutine when done

    This should avoid deadlocking when context is destroyed.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    79a7cf8 View commit details
    Browse the repository at this point in the history
  20. mirror: add more logging

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    5a65ce6 View commit details
    Browse the repository at this point in the history
  21. gpg: fix downloading multiple keys

    each key needs to be provided as separate argument to gpg1 --recv-keys
    neolynx authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    209b030 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    de2be9b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    fd83c1a View commit details
    Browse the repository at this point in the history
  24. Don't use transactions when direct db access is enough

    For read-only action transactions are not necessary and they risk to deadlock
    if multiple go-routines try to read the database.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    2fa3ade View commit details
    Browse the repository at this point in the history
  25. Fix syntax error

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    914ddf4 View commit details
    Browse the repository at this point in the history
  26. Add new AUTHORS

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    bd4c3a2 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    9b28d89 View commit details
    Browse the repository at this point in the history
  28. Use global async flag as fallback on per-request flag

    This way, if no pre-request flag is specified, the globally configured default
    is used.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    0914cd1 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ff51c46 View commit details
    Browse the repository at this point in the history
  30. Fix system tests

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    787cc8e View commit details
    Browse the repository at this point in the history
  31. Fix indentation

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    8c94973 View commit details
    Browse the repository at this point in the history
  32. Fix rebase

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    fb8b05e View commit details
    Browse the repository at this point in the history
  33. Fix unittests

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    370e3cd View commit details
    Browse the repository at this point in the history
  34. Fix pure-go unittests

    So they can run on e.g. LXC containers as root, or other conceivable setups.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    6826efc View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    b281819 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    beb9d43 View commit details
    Browse the repository at this point in the history
  37. Workaround differences in the GHA Ubuntu 18.04 environment compared t…

    …o the Travis CI Ubuntu 16.04 environment.
    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    8e309b5 View commit details
    Browse the repository at this point in the history
  38. Initial attempt at a GitHub Actions workflow to emulate the previousl…

    …y used Travis CI setup.
    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    cd76e48 View commit details
    Browse the repository at this point in the history
  39. Fix syntax error.

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    4cb9ac5 View commit details
    Browse the repository at this point in the history
  40. Matrix elements must be arrays.

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    9f9a1a1 View commit details
    Browse the repository at this point in the history
  41. continue-on-error value must be a boolean

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    20b038b View commit details
    Browse the repository at this point in the history
  42. Disable testing against Go master for now.

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    5b8c909 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    c1cdb69 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    9aa9917 View commit details
    Browse the repository at this point in the history
  45. govet: compose literal uses unkeyed fields

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    e2d1e9a View commit details
    Browse the repository at this point in the history
  46. govet: compose literal uses unkeyed fields

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    5342e54 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    78082bc View commit details
    Browse the repository at this point in the history
  48. govet: compose literal uses unkeyed fields

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    ef25417 View commit details
    Browse the repository at this point in the history
  49. govet: compose literal uses unkeyed fields

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    4cf57ae View commit details
    Browse the repository at this point in the history
  50. Fix linting errors

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    3775d69 View commit details
    Browse the repository at this point in the history
  51. Fix flake8 lint errors

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    7412b84 View commit details
    Browse the repository at this point in the history
  52. Fix some failing system tests

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    4a9a5bc View commit details
    Browse the repository at this point in the history
  53. Try to fix test failing on CI

    PublishRepo26Test fails to run because something in the CI environment forces
    gpg to ask for the user's password. Try to require gpg1 for the test, which
    seems to run fine in other environments.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    4933e3c View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    8ecd01b View commit details
    Browse the repository at this point in the history
  55. Fix test after merge

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    9bf1a44 View commit details
    Browse the repository at this point in the history
  56. Trigger CI on every push

    randombenj authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    ed7a960 View commit details
    Browse the repository at this point in the history
  57. Build for newer go versions

    randombenj authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    a83dea7 View commit details
    Browse the repository at this point in the history
  58. Silence unhelpful linter error

    See #1012
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    0dc49d2 View commit details
    Browse the repository at this point in the history
  59. Fix failing tests

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    91c3ed8 View commit details
    Browse the repository at this point in the history
  60. Re-enable testing on go 1.17

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    d60e575 View commit details
    Browse the repository at this point in the history
  61. Ignore dates in test

    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    30e9406 View commit details
    Browse the repository at this point in the history
  62. Typo correction in GHA workflow comment

    ximon18 authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    122ff60 View commit details
    Browse the repository at this point in the history
  63. Strip irrelevant lines from test output

    It may happen that aptly retries to download data during tests (maybe because
    of a network issue), but our fixtures doesn't account for it. So, we strip
    those irrelevant lines before comparison.
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    48635c8 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    70f7d74 View commit details
    Browse the repository at this point in the history
  65. Update minimum required go version

    randombenj authored and lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    bda6eb4 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    a40cfc6 View commit details
    Browse the repository at this point in the history
  67. Convert tests to Python 3

    Fix #938
    lbolla committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    035d531 View commit details
    Browse the repository at this point in the history
  68. Fix badges

    randombenj committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    f93bc6e View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2022

  1. Grab downloader

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    8941928 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eaac04c View commit details
    Browse the repository at this point in the history
  3. Specify output filename instead of directory

    "temp" downloader uses its own naming for downloaded files.
    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    eff2e56 View commit details
    Browse the repository at this point in the history
  4. Disable checksum for now

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    3e06af8 View commit details
    Browse the repository at this point in the history
  5. Add more logging

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    b5d90b7 View commit details
    Browse the repository at this point in the history
  6. Reenable checksums

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    952287a View commit details
    Browse the repository at this point in the history
  7. Add logs for checksum

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    86c1ffa View commit details
    Browse the repository at this point in the history
  8. Handle checksums

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    853c990 View commit details
    Browse the repository at this point in the history
  9. Wrap errors with more context

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    e5d9d27 View commit details
    Browse the repository at this point in the history
  10. Implement ignore checksum mismatch

    Also, update "pkg/errors" library.
    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    e96372c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8925949 View commit details
    Browse the repository at this point in the history
  12. Fix error checking

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    4c54f96 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    235e35a View commit details
    Browse the repository at this point in the history
  14. Remove vendor directory

    We use go modules now.
    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    cc30ef3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1afcd68 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    551a370 View commit details
    Browse the repository at this point in the history
  17. Update man pages

    lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    2c68175 View commit details
    Browse the repository at this point in the history
  18. deb: fix importing dbgsym packages with versioned Source field

    dpkg-gencontrol can be called with -v flag which set binary package's
    version separated from source version. When this happen, the Source
    field will contain version number in addition to source package name.
    This tripped Aptly's dbgsym restriction, which check for exact source
    package name, which in turn prevents the dbgsym & the whole .changes
    file from being imported.
    
    From the git history, it seems like this condition is a leftover from
    when Aptly filter dbgsym packages using "*-dbgsym". So, I decided to
    remove it. A test case has been added to prevent regression.
    peat-psuwit authored and lbolla committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    814d4db View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2022

  1. Fix: typo in aptly web page link

    chanix95 authored and randombenj committed Feb 5, 2022
    Configuration menu
    Copy the full SHA
    ff5eb53 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. Configuration menu
    Copy the full SHA
    5d98546 View commit details
    Browse the repository at this point in the history
  2. Revive skipped tests

    lbolla committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    1361bf2 View commit details
    Browse the repository at this point in the history
  3. Fix linting errors

    lbolla committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    e8ec638 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Add release to CI

    randombenj committed Feb 11, 2022
    Configuration menu
    Copy the full SHA
    21029c3 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2022

  1. Use University of Utah mirror in tests

    Fix #1034
    lbolla committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    fd40406 View commit details
    Browse the repository at this point in the history
  2. Timeout CI build job after 30 minutes

    Fix #1032
    lbolla committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    f89350e View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. Configuration menu
    Copy the full SHA
    c46f12f View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. Add support for zst compression

    mbearup authored and randombenj committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    5a23f71 View commit details
    Browse the repository at this point in the history
  2. Remove 1.14 from CI

    Ubuntu authored and randombenj committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    5b98039 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c1e577c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    47bda05 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2022

  1. Configuration menu
    Copy the full SHA
    cf98718 View commit details
    Browse the repository at this point in the history
  2. Fix system test env setup

    randombenj committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    d2d168f View commit details
    Browse the repository at this point in the history
  3. Fix typo in ci config

    randombenj committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    c29ccaa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0302e39 View commit details
    Browse the repository at this point in the history
  5. Fix failing checks

    randombenj committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    8046fb1 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Add metrics endpoint with http metrics using Prometheus client lib

    Markus Muellner authored and randombenj committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    6539e1b View commit details
    Browse the repository at this point in the history
  2. Add functional test for metrics endpoint

    Markus Muellner authored and randombenj committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    db19a56 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Fix artifacts publishing

    randombenj committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    d955b06 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Support custom Azure publish endpoint

    chuan authored and randombenj committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    152538c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c04e77 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. Configuration menu
    Copy the full SHA
    954b222 View commit details
    Browse the repository at this point in the history
  2. add myself to authors

    russelltg authored and randombenj committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    751fd2f View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2022

  1. Configuration menu
    Copy the full SHA
    0a17988 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. fix: typo in the comments

    myml authored and randombenj committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    a0544dc View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. Update azurite dir

    chuan authored and randombenj committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    f9f1c8e View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. api: allow parameters with urlencoded names

    Aptly allows create e.g. repos with a / to use those with the REST api
    the router needs to allow urlencoded parameters in various places to
    represent this. A specific example of this is the /api/repos/:name/packages path
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    29deae6 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Use python3 for system tests

    Most modern distribution use python3 for python (3). Default to that to
    make it a bit simpler to run systems tests on Debian
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    a687df2 View commit details
    Browse the repository at this point in the history
  2. Cope with zero-length http downloads

    mkke authored and randombenj committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    4b2efee View commit details
    Browse the repository at this point in the history
  3. Update azure dependency

    randombenj committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    f519ecd View commit details
    Browse the repository at this point in the history
  4. Upload code coverage

    randombenj committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    35ad6ca View commit details
    Browse the repository at this point in the history
  5. Add codecov configuration

    randombenj committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    6f130e1 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Run go mod tidy

    Seems go.mod had some modules that are no longer used since the last
    version bumps? Running `make modules` or really `go mod tidy`
    automagically cleans those up.
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    26254a0 View commit details
    Browse the repository at this point in the history
  2. Use parallel gzip instead of gzip for compression

    golangs compress/gzip isn't a parallel implementation, so it's quite a
    bit slower on most modern servers then pgzip. The below benchmark
    run shows that publishing a debian bullseye mirror snapshot (amd64, arm64,
    armhf, source) shows a gain of about 35% in publishing time (when skipping
    bz2 using MR #1081)
    
    ```
     hyperfine -w 1 -m 3 -L aptly aptly-nobz2,aptly-nobz2-pgzip -p "{aptly} -config aptly.conf publish drop bullseye || true" "{aptly} -config aptly.conf  publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye"
    Benchmark 1: aptly-nobz2 -config aptly.conf  publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
      Time (mean ± σ):     35.548 s ±  0.378 s    [User: 39.465 s, System: 10.046 s]
      Range (min … max):   35.149 s … 35.902 s    3 runs
    
    Benchmark 2: aptly-nobz2-pgzip -config aptly.conf  publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
      Time (mean ± σ):     26.592 s ±  0.069 s    [User: 42.207 s, System: 9.676 s]
      Range (min … max):   26.521 s … 26.660 s    3 runs
    
    Summary
      'aptly-nobz2-pgzip -config aptly.conf  publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
        1.34 ± 0.01 times faster than 'aptly-nobz2 -config aptly.conf  publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye'
    ```
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    2aca913 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Allow disabling bzip2 compression for index files

    Using bzip2 generates smaller index files (roughly 20% smaller Packages
    files) but it comes with a big performance penalty.  When publishing a
    debian mirror snapshot (amd64, arm64, armhf, source) without contents
    skipping bzip speeds things up around 1.8 times.
    
    ```
    $ hyperfine -w 1 -L skip-bz2 true,false  -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf  publish snapshot  --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
    Benchmark 1: aptly -config aptly.conf  publish snapshot  --skip-bz2=true --skip-contents --skip-signing bullseye
      Time (mean ± σ):     35.567 s ±  0.307 s    [User: 39.366 s, System: 10.075 s]
      Range (min … max):   35.311 s … 35.907 s    3 runs
    
    Benchmark 2: aptly -config aptly.conf  publish snapshot  --skip-bz2=false --skip-contents --skip-signing bullseye
      Time (mean ± σ):     64.740 s ±  0.135 s    [User: 68.565 s, System: 10.129 s]
      Range (min … max):   64.596 s … 64.862 s    3 runs
    
    Summary
      'aptly -config aptly.conf  publish snapshot  --skip-bz2=true --skip-contents --skip-signing bullseye' ran
        1.82 ± 0.02 times faster than 'aptly -config aptly.conf  publish snapshot  --skip-bz2=false --skip-contents --skip-signing bullseye'
    ```
    
    Allow skipping bz2 creation for setups where faster publishing is more
    important then Package file size.
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    f61514e View commit details
    Browse the repository at this point in the history
  2. S3: support disabling ACL with none value

    This change lets you disable ACL when using S3 by using a configuration
    value of `none`. This way we maintain backward compatibility with the
    default setting being `private`.
    
    Fixes: #1067
    wadey authored and randombenj committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c9f5763 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Test utils

    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    3ce2774 View commit details
    Browse the repository at this point in the history
  2. Test copyfile

    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    bfc86d3 View commit details
    Browse the repository at this point in the history
  3. Fix failing mirror test

    Add the https redirect to the gold ouptut of the test
    as this was changed for the jenkins debian repos
    and the tests were failing after this change.
    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    69d473e View commit details
    Browse the repository at this point in the history
  4. Capture coverage of integration tests

    To capture the coverage also for the integration tests,
    a test only executing the cmd.Run function is used.
    
    The test always exits with code 0 and prints the
    real exit code to stdout. Otherwise no coverage
    report is generated.
    
    Those changes enable a more accurate coverage report
    for future contributions.
    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    1d4e618 View commit details
    Browse the repository at this point in the history
  5. Improve error messages

    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    ff3bf4b View commit details
    Browse the repository at this point in the history
  6. Fix temp dir on ci

    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    515e553 View commit details
    Browse the repository at this point in the history
  7. Fix release build

    randombenj committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    f0a85b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2022

  1. upgrade go-xz go module

    Adam Bambuch authored and randombenj committed Aug 4, 2022
    Configuration menu
    Copy the full SHA
    abf8abb View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Configuration menu
    Copy the full SHA
    af89914 View commit details
    Browse the repository at this point in the history
  2. Fix golangci-lint

    randombenj committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    afdc10b View commit details
    Browse the repository at this point in the history
  3. Fix mirror test

    randombenj committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    42cfee2 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. api: Allow querying the packages endpoint

    The ".../packages" endpoints for mirror, local repos and snapshots all
    share the same syntax for querying. However the "/api/packages" endpoint
    doesn't match this. Adjust that to allow for a bit more consistency and
    allow querying the full package database.
    
    The current endpoint functionality "/packages/:name" is kept intact and
    can be used the same as now
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    393d1a6 View commit details
    Browse the repository at this point in the history
  2. Enable the ability to pass in a custom codename

    While testing out Aptly, the `apt-get` client complains with the following error, since the `codename` was switched from the InRelease files that are baked out by Aptly:
    
    ```
    E: Repository 'http://debianrepo.example.com/bionic testing InRelease' changed its 'Codename' value from '' to 'testing'
    ```
    Steven Stone authored and randombenj committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    a59cad6 View commit details
    Browse the repository at this point in the history
  3. Fix system test

    Steven Stone authored and randombenj committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    47930a4 View commit details
    Browse the repository at this point in the history
  4. Fix PublishSnapshot39Test_release_i386 system test

    Steven Stone authored and randombenj committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    9042651 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b3d9055 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Configuration menu
    Copy the full SHA
    268c39e View commit details
    Browse the repository at this point in the history
  2. Update AUTHORS

    boxjan authored and randombenj committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    e90ac67 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Return an empty array if no tasks are available

    All other api endpoints also send empty arrays instead of nil.
    Closes #1123
    randombenj committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    71fd730 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. update golangci-lint and replace deprecated calls to io/ioutil

    Markus Muellner authored and randombenj committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    352f4e8 View commit details
    Browse the repository at this point in the history
  2. add ready and healthy probe endpoints

    Markus Muellner authored and randombenj committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    2020ca9 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2022

  1. return the snapshot in apiSnapshotsCreate

    In v1.4.0 it [returned the snapshot](https://github.com/aptly-dev/aptly/blob/v1.4.0/api/snapshot.go#L168), but this was removed (by accident) in v1.5.0. This adds it back.
    samuelba authored and randombenj committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    ced5ac7 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. Bump github.com/aws/aws-sdk-go from 1.25.0 to 1.33.0

    Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.25.0 to 1.33.0.
    - [Release notes](https://github.com/aws/aws-sdk-go/releases)
    - [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md)
    - [Commits](aws/aws-sdk-go@v1.25.0...v1.33.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/aws/aws-sdk-go
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and randombenj committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    81582bf View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2023

  1. replace AbortWithError calls by custom function that sets the content…

    … type correctly
    Markus Muellner authored and randombenj committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    ecc41f0 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. Bump github.com/aws/aws-sdk-go from 1.33.0 to 1.34.0

    Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.33.0 to 1.34.0.
    - [Release notes](https://github.com/aws/aws-sdk-go/releases)
    - [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.34.0/CHANGELOG.md)
    - [Commits](aws/aws-sdk-go@v1.33.0...v1.34.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/aws/aws-sdk-go
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and randombenj committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    0c74992 View commit details
    Browse the repository at this point in the history
  2. implement structured logging

    Markus Muellner authored and randombenj committed Feb 20, 2023
    Configuration menu
    Copy the full SHA
    8e62195 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Fix: Switch gin mode depending on aptly.EnableDebug

    If aptly.EnableDebug is active, we use Debug, otherwise we use
    gin.ReleaseMode to remove the annoying nuding messages when running the
    api.
    
    fixes: #1103
    reglim authored and randombenj committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    c187b0d View commit details
    Browse the repository at this point in the history
  2. Fix: Drop Publish returned wrong status code if not found

    Deleting a publish that does not exist now results in a status code 404
    instead of 500.
    
    Fixes: #1006
    reglim authored and randombenj committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    dbf1ac7 View commit details
    Browse the repository at this point in the history
  3. Fix: Make CodeCov Pipeline more lenient

    The Pipeline will only fail if the code coverage has fallen more than 2
    Percent.
    
    fixes: #1154
    reglim authored and randombenj committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    aaa6222 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. Fix CodeCov Config has two targets and thresholds

    fixes: #1160
    reglim authored and randombenj committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    5b5307c View commit details
    Browse the repository at this point in the history
  2. Improvement: Remove Magic Numbers in Tests with Tasks

    Replaced 2 with TASK_SUCCEEDED, 3 with TASK_FAILED.
    
    fixes: #1158
    reglim authored and randombenj committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    90932cd View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. Feature: Add Merge Snapshot API

    Is part of Issue #176
    reglim authored and randombenj committed Mar 14, 2023
    Configuration menu
    Copy the full SHA
    77e02bf View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. update golangci-lint to v1.51.2

    Markus Muellner authored and randombenj committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    bece12a View commit details
    Browse the repository at this point in the history
  2. Serve api and published repos simultaneously

    refs #1017 #975
    aol-nnov authored and randombenj committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    e25ade8 View commit details
    Browse the repository at this point in the history
  3. implement system tests for serving api and published repos simultaneo…

    …usly
    Markus Muellner authored and randombenj committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    f74217e View commit details
    Browse the repository at this point in the history
  4. make serving published repos in api mode configurable

    Markus Muellner authored and randombenj committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    0fdba29 View commit details
    Browse the repository at this point in the history
  5. add endpoint for listing repos while serving in api mode and add more…

    … metrics
    Markus Muellner authored and randombenj committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    9c6f896 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Fix: Pipeline dependency on deb.debian.org, replace with archive

    This should fix some tests, as a lot of them are dependent on
    deb.debian.org which no longer supports Debian 9 "Stretch".
    Instead we use archive.debian.org which will continue to contain
    "Stretch" packages for a long time.
    reglim committed May 15, 2023
    Configuration menu
    Copy the full SHA
    d1102e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9b1782 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    95ca6fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ae9884 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c8dd73 View commit details
    Browse the repository at this point in the history
  6. Try to fix UnixSocketAPITest by upgrading dependencies

    Updated urllib, requests and requests_unixsocket
    reglim committed May 15, 2023
    Configuration menu
    Copy the full SHA
    f6a7030 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    76744ea View commit details
    Browse the repository at this point in the history

Commits on May 19, 2023

  1. Update go-xz to 0.1.0

    Older versions go-xz didn't wait for child processes meaning for exery
    unpack action a defunct xz would stick around. This got fixed in 0.1.0
    
    Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
    sjoerdsimons authored and randombenj committed May 19, 2023
    Configuration menu
    Copy the full SHA
    1df8cff View commit details
    Browse the repository at this point in the history

Commits on May 26, 2023

  1. Show storage of publish on graph

    strike authored and randombenj committed May 26, 2023
    Configuration menu
    Copy the full SHA
    8f53e01 View commit details
    Browse the repository at this point in the history
  2. Add strike to AUTHORS

    strike authored and randombenj committed May 26, 2023
    Configuration menu
    Copy the full SHA
    1501a4e View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Fix publishing race condition

    A race condition for publishing packages and
    mirrors at the same time was introduced in
    commit 77d7c38.
    
    The problem is that when opening a leveldb transaction
    and performing another 'put' to the db
    the system freezes.
    randombenj committed May 31, 2023
    Configuration menu
    Copy the full SHA
    ecc0551 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. chore: unnecessary use of fmt.Sprintf

    testwill authored and randombenj committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    847fd90 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. Fix returncode when deleting a mirror with snapshot

    When trying to delete a mirror that has snapshot and not providing the
    force option, the API should not return a `500
    StatusInternalServerError`.
    A `403 StatusForbidden` is more appropriate when the condition is
    expected by the server.
    Crawax authored and reglim committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    214e907 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. Configuration menu
    Copy the full SHA
    ee4c83e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    40c242f View commit details
    Browse the repository at this point in the history
  2. Fix: Pipeline failing because of outdated Repo

    Updated the repo key, repo links in tests (jessie-cran35 -> bullseye-cran40) and the expected test output.
    
    Fixes: #1218
    reglim committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    18203c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu
    Copy the full SHA
    972bf6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f4a152a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae61706 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0d20c59 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f155ed3 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Improve test output regex for better perf

    The current regex runs in exponential time, which massively impacts the
    runtime of the test suite, taking several seconds (~4s on my system)
    just to perform a single match. By replacing the mix of re.findall + the
    initial capture group with re.search + some string slicing, the time
    spent matching the regex becomes nearly instant, e.g.:
    
        $ make system-test TESTS='Config*'
    
    goes from taking ~10s to ~1.5s.
    
    Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
    refi64 authored and reglim committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    889fcc2 View commit details
    Browse the repository at this point in the history
  2. Fix the test output regex on Go 1.20

    1.20 changes the output format of coverage checks slightly to include
    a package name on each line, followed by `coverage:`, but the current
    regex assumes that the line *starts* with `coverage:`.
    
    Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
    refi64 authored and reglim committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ed45c44 View commit details
    Browse the repository at this point in the history
  3. Add myself to authors

    Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
    refi64 authored and reglim committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    322e5c1 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Switch to aws-sdk-go-v2

    lebauce authored and randombenj committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    3aaf0a8 View commit details
    Browse the repository at this point in the history
  2. Shut down cleanly when 'api serve' is interrupted

    This will properly close the db and, more particularly, flush out any
    profile files being written. Otherwise, they can end up empty or
    truncated.
    
    Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
    refi64 authored and randombenj committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    11deb94 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Bump golang.org/x/net from 0.15.0 to 0.17.0

    Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
    - [Commits](golang/net@v0.15.0...v0.17.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/net
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and randombenj committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    f1649a6 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Configuration menu
    Copy the full SHA
    cfcab13 View commit details
    Browse the repository at this point in the history
  2. add name to authors

    paulcacheux authored and randombenj committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    5ca3a97 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99dbe31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aeef41b View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2024

  1. clean pathCache

    sf-nwaller authored and neolynx committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    525a687 View commit details
    Browse the repository at this point in the history
  2. Update AUTHORS

    as per contributor instructions
    sf-nwaller authored and neolynx committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    f897150 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa96206 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b85f240 View commit details
    Browse the repository at this point in the history
  5. s3: respect default ACLs

    neolynx committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    14bd670 View commit details
    Browse the repository at this point in the history