Skip to content

Add Revision annotations to conformance tests#600

Merged
google-prow-robot merged 1 commit intoknative:masterfrom
bobcatfish:update_labels_conf_test
Apr 6, 2018
Merged

Add Revision annotations to conformance tests#600
google-prow-robot merged 1 commit intoknative:masterfrom
bobcatfish:update_labels_conf_test

Conversation

@bobcatfish
Copy link
Contributor

In #572 Revision was made to be
updated with the generation of the Configuration that triggered its
creation. This commit updates the conformance tests to assert that it is
being populated correctly.

Also fixed a bug: after updating the Configuration with a new image, we
were (I mean I was, I created this bug XD) waiting for the previous
Revision to be ready (which of course it was right away), not the new
Revision. This means that the health check we had added MIGHT have
actually been working (i.e. saving us from 404s and 503s).

Snuck in a rename of routeIsReady to isRouteReady to be consistent
with other functions in the file.

This partially addresses #593.

Proposed Changes

  • Assert against ConfigurationGenerationAnnotationKey in conformance tests

In knative/serving#572 Revision was made to be
updated with the generation of the Configuration that triggered its
creation. This commit updates the conformance tests to assert that it is
being populated correctly.

Also fixed a bug: after updating the Configuration with a new image, we
were (I mean *I was*, I created this bug XD) waiting for the previous
Revision to be ready (which of course it was right away), not the new
Revision. This means that the health check we had added MIGHT have
actually been working (i.e. saving us from 404s and 503s).

Snuck in a rename of `routeIsReady` to `isRouteReady` to be consistent
with other functions in the file.

This partially addresses #593.
@google-prow-robot google-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 5, 2018
Copy link
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't run the tests yet, but I expect you have :)

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2018
@adrcunha
Copy link
Contributor

adrcunha commented Apr 6, 2018

/test all

@adrcunha
Copy link
Contributor

adrcunha commented Apr 6, 2018

I haven't run the tests yet, but I expect you have :)

prow will ;)

@adrcunha
Copy link
Contributor

adrcunha commented Apr 6, 2018

/lgtm
/approve

@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha, bobcatfish, grantr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot merged commit 3a91d47 into knative:master Apr 6, 2018
google-prow-robot pushed a commit that referenced this pull request Jul 20, 2018
…1428)

In #475 I removed assertions
against Configuration.Spec.Generation b/c it is a hack and not part of
the knative spec.

In #600 I updated the
conformance tests to assert against the Revision annotation which
contains the generation.

BUT THEN in #778 when I
completely re-wrote the tests to no longer use Ginkgo, I accidentally
undid both of those changes, so this commit puts them back 😅.

BONUS: I hit a case where the length of the loadbalancer ingresses was
0 and got a panic, so if that happens again we'll get an informative
error instead.
@knative-prow-robot
Copy link
Contributor

@bobcatfish: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-serving-integration-tests de4d0c0 link /test pull-knative-serving-integration-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants