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 star wars demo #5300
Fix star wars demo #5300
Conversation
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I highly disagree with the sentiment of this PR. If you look at the commit which broke the test, all it did was move files around: cilium/star-wars-demo@28ac07e
We should not have links to 'pointers' to commits in our CI. This is similar to not using 'latest' for an image tag. What if, say, a bad commit is pushed to master of the star-wars-demo repo and we are trying to do critical backports to v1.0, v1.1, and v1.2? It will break the CI, which is exactly what happened last week. This resulted in a bunch of failed builds and created a bunch of noise. I'd be alright with updating the commit from the cilium/star-wars-demo repository used in this test to the most recent one.
And I'm glad it did, it make us to be aware of the problem and fix it quickly with your commit, otherwise it would be unnoticed, we would be making changes in Cilium and potentially break demos without realizing. |
I still (and will) disagree, because I am firmly of the belief that we should not be breaking CI based off of the state of other branches. The reason this test was added was to ensure we have coverage of the demo immediately in the CI- the easiest way of doing this was to port the demo itself to the CI, as it was marked as high priority at the time. Instead of relying upon the state of that repository, let's distill what functionality of Cilium this is testing (GRPC with L4 and L7 policy) and add a test which tests said functionality that is located in the cilium/cilium repository. If we want to test the demo itself, we should add a test which runs in the cilium/star-wars-demo repository, because that's where the actual demo code is. |
I think both arguments are valid. Both approaches verify a different requirement. The original purpose of the test was to ensure that we are not in a position of doing a live demo based on the contents of that repo and be surprised. Which is what happened once and why Andre is bringing this up the way he is. We have ample coverage of the functionality in other tests so if we follow Ian's understanding, then we could also remove the test entirely after a quick audit. My proposal: |
Hi, I have a few things to mention here:
I'm happy if we do the following:
Regards. |
Let's avoid over-engineering this. We have a simple goal: We want to ensure that the demo always works. The version to demo does not have to be master. If we release it properly and declare it as such in the README then that is fine as well. |
+1 |
test-me-please |
daemon/policy.go
Outdated
@@ -40,7 +39,7 @@ import ( | |||
"github.com/op/go-logging" | |||
) | |||
|
|||
// TriggerPolicyUpdates triggers policy updates for every daemon's endpoint. | |||
// RegenerateAllEndpoints triggers policy updates for every daemon's endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported method Daemon.TriggerPolicyUpdates should be of the form "TriggerPolicyUpdates ..."
This reverts commit c162b90.
Signed-off-by: André Martins <andre@cilium.io>
a67ca86
to
dfb91fe
Compare
test-me-please |
Summary of changes:
This reverts commit c162b90 as the purpose of the test to point to master is to break the CI so we are aware the demo was changed and the test needs to be re-written.
This change is