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

add ability to download cached workspace #520

Merged
merged 35 commits into from
Mar 27, 2024

Commits on Mar 18, 2024

  1. create "stale" field on workspace state

    A provider that downloads its workspace state directly cannot assume
    that this state is a valid basis for a future incremental update, and
    should mark the downloaded workspace as stale.
    
    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    8b79acc View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. WIP add configs

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    9d17b8b View commit details
    Browse the repository at this point in the history
  2. lint fix

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    4e16c21 View commit details
    Browse the repository at this point in the history
  3. [wip] working on vunnel results db listing

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    44901fc View commit details
    Browse the repository at this point in the history
  4. update and tests for safe_extract_tar

    Now that we're using it for more than one thing, make an extractor that
    generally prevents path traversal.
    
    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    4d54514 View commit details
    Browse the repository at this point in the history
  5. [wip] adding tests for fetching listing and archives

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    8834a49 View commit details
    Browse the repository at this point in the history
  6. [wip] add more negative tests for provider tests

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    dc7200f View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. unit test for new workspace changes

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    46b8127 View commit details
    Browse the repository at this point in the history
  2. replace the workspace results instead of overlaying

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    075405a View commit details
    Browse the repository at this point in the history
  3. clean up hasher implementation

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    94d8158 View commit details
    Browse the repository at this point in the history
  4. add tests for prep workspace from listing entry

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    a3c472c View commit details
    Browse the repository at this point in the history
  5. do not include inputs in tar test fixture

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    4a87c4c View commit details
    Browse the repository at this point in the history
  6. vunnel fetch existing workspace working

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    5257544 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. add unit test for full update flow

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1886e9c View commit details
    Browse the repository at this point in the history
  2. update existing unit tests for new config values

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7d1202b View commit details
    Browse the repository at this point in the history
  3. add unit test for default behavior of new configs

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    54cdfd6 View commit details
    Browse the repository at this point in the history
  4. lint fix

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    329ff37 View commit details
    Browse the repository at this point in the history
  5. add missing annotations import

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    92d4878 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Use 3.9 compatible annotations

    Relying on the from __future__ import annotations doesn't work with the
    mashumaro.
    
    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    6c8de19 View commit details
    Browse the repository at this point in the history
  2. validate that enabling import results requires host and path

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    ee32714 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2024

  1. rename listing field and add schema

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    c930822 View commit details
    Browse the repository at this point in the history
  2. only require github token when downloading

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    3c083a1 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2024

  1. add zstd support

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    27cf42c View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. add tests for zstd support

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    28e5c16 View commit details
    Browse the repository at this point in the history
  2. add tests for _has_newer_archive

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    a3ca88b View commit details
    Browse the repository at this point in the history
  3. fix tests for zstd

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    1631623 View commit details
    Browse the repository at this point in the history
  4. show stderr to log when git commands fail

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    27696a3 View commit details
    Browse the repository at this point in the history
  5. move import_results to common field on provider

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    b150d02 View commit details
    Browse the repository at this point in the history
  6. add concept for distribution version

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    68b3197 View commit details
    Browse the repository at this point in the history
  7. single source of truth for provider schemas

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    21e2bd0 View commit details
    Browse the repository at this point in the history
  8. add distribution-version to schema, provider state, and listing entry

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    62186c0 View commit details
    Browse the repository at this point in the history
  9. clear workspace on different dist version

    Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
    wagoodman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    c3d65c1 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. fix defaulting logic and update tests

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    edc2c65 View commit details
    Browse the repository at this point in the history
  2. default distribution version and path

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    aa9bea8 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. make "" and None both use default path

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    2c3c498 View commit details
    Browse the repository at this point in the history