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

[v2.3.2] Don't retry tests at the GHA level #4281

Merged
merged 7 commits into from
Jun 15, 2022
Merged

Commits on Jun 14, 2022

  1. pkg/k8s: Skip notoriously flakey test

    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    LukeShu committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    fed36ff View commit details
    Browse the repository at this point in the history
  2. .github: Don't retry tests

    Besides test retries being bad (they're there for the case that the test
    intermittently flakes, but mask the case that the code-under-test only
    intermittently works), this is important in order to remove the
    `nick-invision/retry@v2.4.0` GitHub action.  It has a bug where if there
    is too much output it marks the test as passing even if it fails.  That is
    very bad, and we cannot permit that type of failure mode in our CI.
    
    nick-fields/retry#76
    
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    LukeShu committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    8816ab9 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. fetcher.py: fix parse_watt to handle missing annotations

    fetcher.py's parse_watt() calls `watt_k8s.pop('annotations') or {}` to
    pluck the annotations out of the watt snapshot.  Because the `pop`
    call does not include a default this causes it to throw a KeyError
    when `annotations` doesn't exist.  This isn't an issue in normal use,
    as `pkg/snapshot/v1/types.go` doesn't say `,omitempty` on that field,
    so it will always be present.  However this does cause a problem for
    many of the unit tests, which don't set that field.  So, move the
    default value to inside of the call to `pop`.
    
    Signed-off-by: Lance Austin <laustin@datawire.io>
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    Lance Austin authored and LukeShu committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    a57c235 View commit details
    Browse the repository at this point in the history
  2. test_cache.py: Fix test_mappings_same_name_delta

    The test YAML parser doesn't need to be told about Namespaces; and indeed
    it chokes on them because they don't have a `.metadata.namespace`.
    
    Also, you can't multi-assign from a bool.
    
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    LukeShu committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    afb3c15 View commit details
    Browse the repository at this point in the history
  3. Move the annotation Python unit test to be a pkg/snapshot Go unit test

    Remove the Python unit test for testing annotation parsing because it
    is already being tested in `pkg/snapshot/v1/annotations_test.go`.
    
    However, the Go version is missing tests for the following use cases:
    
    - "getambassador.io/config" annotation is empty
    - "getambassador.io/config" is empty missing
    
    So add those 2 cases to the Go test.
    
    Signed-off-by: Lance Austin <laustin@datawire.io>
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    Lance Austin authored and LukeShu committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    48816b1 View commit details
    Browse the repository at this point in the history
  4. test_acme_privatekey_secrets.py: Fix the test

    Fixes: 417a831
    
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    LukeShu committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    61cca47 View commit details
    Browse the repository at this point in the history
  5. test_host_redirect_errors.py: Improve a comment

    Make it clear that "XXX" in this case means that something is wrong.
    
    Signed-off-by: Luke Shumaker <lukeshu@datawire.io>
    LukeShu committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    a1810d6 View commit details
    Browse the repository at this point in the history