-
Notifications
You must be signed in to change notification settings - Fork 579
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
Test tasks that only has been modified or added #385
Conversation
@chmouel: GitHub didn't allow me to request PR reviews from the following users: you, there, is, other, detect, -, to, git, trickery, i, can, use, if, know. Note that only tektoncd members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
44f1233
to
33f58bc
Compare
/cc @sbwsg @afrittoli |
33f58bc
to
04eafdd
Compare
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.
/lgtm
/meow
😻
In response to this:
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. |
04eafdd
to
bdf8b50
Compare
bdf8b50
to
128e4fb
Compare
128e4fb
to
b81301b
Compare
Seems to work okay, it only detect the change in curl and wget :
(i had another test that test as well new addition) I am not detecting the changes for I think we would probably want some full integration weekly test run still, we may have set this up from the plumbing repository. /hold cancel |
b81301b
to
b22e6ef
Compare
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.
While I understand the reason behind this, I fear this may come back and bite us, at least until we only have one repo for catalog. Many tasks will not change a lot over time, so they won't be tested for potentially long time - when the time comes to actually change something they might be not usable anymore.
So, while I agree this is good to have, I think at the same time we need to setup some way to run all the tests, either on demand, or periodically. Perhaps we should have an "info only" catalog test running on pipeline changes, or one that could be triggered on demand.
b22e6ef
to
341e233
Compare
Yes agreed this is what i was mentioning in my comment here we would need to have some weekly periodic jobs for this... I am not so sure if we can tell to prow something like this
and have the argument I am not so sure I understand what do you mean by "info only" |
Further note, the integration tests before this PR is taking 20mn to run, if we are adding pipeline supported version matrix this time would exponentially grow pretty big |
only if they run one at a time :D |
i wonder if doing this will prevent us from catching issues - for example if we bump the version of tekton pipelines the tests are using, but we don't run any of the tests, we wont catch any problems 🤔 maybe we can add a nightly run of the tests to make up for it? |
I have added cc4b6f0 so we can define the variable Now to figure out on how to add a nightly catalog job in |
16e1352
to
cc4b6f0
Compare
/hold |
All tests are isolated in the given namespace. They are created at the begging of tests and cleaned up at the end of tests. Since, namespace are fairly predictable "local tns="${testname}-${version}". Maybe we should clean up all the resources in the namespace and not the namespace itself when the test ends. We should maybe have a task at the begging of the test suite to clean up old namespaces. At which point we only run tests if the namespace does not exist. local tns="${testname}-${version}" I am spit balling here, tbh. Just trying to give a suggesiton. |
cc4b6f0
to
5f3a71d
Compare
5f3a71d
to
ef36de7
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We are detecting the task that only has been modified or added with the help of git diff against the 'main' branch. If we set and define the variable TEST_RUN_ALL_TESTS it will force running all the tests and not just the modified ones. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
ef36de7
to
867ab4d
Compare
/hold cancel this was tested as working, i have added previously a commit to this pr which had a change in the task/trigger-jenkins-job and it properly tested only that task @vdemeester we are good to update the periodic jobs too. |
lgtm |
/lgtm |
Changes
We are nnow only doing integration tests on the tasks that has been modified or added. This will improve the speed of each PR iteration not testing everything while the PR modify only some part of it.
/cc @sthaha
if you know if there is any other git trickery i can use to detect
file changes between the 'main' branch and the PR
/cc @bobcatfish
cf #373 discussion
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.