-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
[Failing Test] : [k8s.io] Sysctls tests failing release-upgrade test suite #64845
Comments
/sig node |
/status approved-for-milestone |
It seems the old tests are running against the new code. Line numbers align with |
@ingvagabund can you open a PR against release-1.10 gating the tests using the alpha annotations from running on 1.11.0-alpha.0 or newer? |
Once again, what is the purpose of the test? |
It's an upgrade test. Not sure what else you need to know? |
in general, the upgrade tests ensure function as exercised in the previous release doesn't regress. the falls apart when the function being tested is explicitly deprecated/dropped in the next version (like these alpha-level annotations). in those cases, we have to fix the previous release branch's tests with magic knowledge from the future. |
@ingvagabund may be this helps - https://github.com/kubernetes/community/blob/master/contributors/devel/e2e-tests.md#version-skewed-and-upgrade-testing As part of upgrade testing we ensure (among other things) "A newer version of the whole cluster with older tests (e.g. that a cluster upgraded---master and nodes---to v1.3 still passes v1.2 tests)." So if I am reading this correctly, "gce-1.10-master-upgrade-cluster-parallel" jobs upgrade the entire cluster from 1.10 -> master and then runs 1.10 tests on it. so if the feature is deprecated in 1.11 then the tests will fail. @krzyzacy @BenTheElder to add if I missed / misquoted something |
I mean if a feature is deprecated, it should handle the deprecation in tests as well. Aka what's the intended behavior if you have feature foo enabled in 1.10 and that's deprecated on 1.11? |
at some point, deprecated function gets dropped. for example, root proxy paths deprecated in 1.2 and dropped in 1.10 required back-patching 1.9 tests that were gamely ensuring the deprecated function kept working in this case, the thing that got dropped was an alpha annotation, which can be dropped without a deprecation period. in my opinion, tests exercising alpha features shouldn't be part of upgrade tests |
@krzyzacy the tests in 1.10 branch is running against master. the master changed sysctl stuff from annotations to fields in master, so it will fail. |
yes, please 👍 |
@liggitt @AishSundar thanks for the explanation. |
…annotations-to-fields-2 Automatic merge from submit-queue. Skip Sysctl tests against v1.11.0-alpha.0 and newer **What this PR does / why we need it**: 1.10 e2e tests get run against 1.11.0+ masters during upgrade tests. This fails as Sysctl moved from annotations to fields, so we should check the version and avoid running these tests. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #64845 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
[MILESTONENOTIFIER] Milestone Issue Needs Attention @AishSundar @ingvagabund @sjenning @kubernetes/sig-node-misc Action required: During code freeze, issues in the milestone should be in progress. Note: This issue is marked as Example update:
Issue Labels
|
Sounds good /close |
Failing Jobs
This job tests upgrading master and node, in gce(gci), from 1.10 to master, run parallel tests only.
Error Logs
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-new-master-upgrade-cluster-parallel/3694
/kind bug
/priority failing-test
/priority critical-urgent
/milestone v1.11
/assign @sjenning
cc @jberkus @tpepper
Possible breaking change #63717
The text was updated successfully, but these errors were encountered: