-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Switch test/*.go
to using YAML rather than structs
#4288
Conversation
/assign @pritidesai |
The following is the coverage report on the affected files.
|
/test check-pr-has-kind-label |
fe002dd
to
0ed21eb
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/remove-kind cleanup |
/kind cleanup |
thanks @abayer
Indeed, avoiding repeatability landed us here 🤦♀️ I would still prefer going towards |
/test pull-kind-label |
@pritidesai Yeah, |
The following is the coverage report on the affected files.
|
test/artifact_bucket_test.go
Outdated
volumes: | ||
- name: bucket-secret-volume | ||
secret: | ||
secretName: bucket-secret |
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.
NIT: this will be %s
instead of a literal bucket-secret
, its a common name defined as a constant so results in the same specifications but since we have it parameterized 😉
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.
Ooops - that was an oversight! I was generating the more complicated YAML via marshaling/editing for parameterization, and missed that one. Fixing now!
The following is the coverage report on the affected files.
|
@pritidesai - latest force-push dealt with |
The following is the coverage report on the affected files.
|
Ok, |
/retest |
[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 |
/hold |
params: | ||
- name: the.path | ||
type: string | ||
- name: the.dest |
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.
NIT: the param name changed here 🙃 dest
to the.dest
but the param reference has changed as well on line 191 so we are good.
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.
oops. =)
name: %s | ||
spec: | ||
resources: | ||
inputs: |
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.
alpha
task specification include spec.inputs.resources
and spec.outputs.resources
, here we have spec.resources.inputs
and spec.resources.outputs
. All the alpha
resources are anyways converted to beta
before processing, so having this spec in beta
format should work. wdyt?
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.
Everywhere else in v1alpha
, I used the alpha syntax, so I'll change this to match.
steps: | ||
- command: ['/workspace/hellowrld/newfile'] | ||
image: ubuntu | ||
name: runfile |
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.
image is runfile
and name is addfile
, interesting choices 😄 @abayer do you want to stick to the original values?
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.
These are the original values. =)
taskRef: | ||
name: %s | ||
- name: runfile | ||
from: |
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.
this from
belongs to resources.inputs[].helloworldgit
🙃
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.
Whoops! Fixed.
name: %s | ||
workspaces: | ||
- name: test | ||
workspace: foo |
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.
NIT: subpath
is missing here, but since its set to an empty string, should be ok to leave it unset.
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.
Yeah, I generally skipped empty string cases like that.
test/v1alpha1/workspace_test.go
Outdated
workspaces: | ||
- name: test | ||
description: 'test workspace' | ||
mountPath: /workspace/test |
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.
mountPath
is set to /workspace/test
instead of /workspace/test/file
here
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.
Fixed.
name: %s | ||
workspaces: | ||
- name: test | ||
workspace: foo |
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.
subpath not set here, similar to the comment ⬆️ , should be fine to leave it unset.
test/workspace_test.go
Outdated
spec: | ||
steps: | ||
- image: alpine | ||
script: 'echo foo > /workspace/test/file' |
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.
the script
is set to different statement compared to original script, cat /workspace/test/file
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.
Fixing!
test/workspace_test.go
Outdated
spec: | ||
steps: | ||
- image: alpine | ||
script: 'echo foo > /workspace/test/file' |
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.
similar to the comment above, the script
is set to a different statement but looks like it should be ok since its not adding any value in the test anyways.
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.
Still, just for consistency, I'll change it.
thanks @abayer for all the hard work on this, I finally finished reviewing all the changes 😓 I have left a few comments. I doubt any of them are blocking since the tests are running fine unless those changes are not necessary or adding any value in terms of validating the functionality 😜 let me know your thoughts ... I am ready to merge this 💯 |
fixes tektoncd#4276 Signed-off-by: Andrew Bayer <[email protected]>
/hold cancel |
@pritidesai Ok, nits addressed, and I've taken it off hold! |
alright, thanks a bunch @abayer once again 🙏 Lets merge this 🎉 /lgtm |
/test pull-tekton-pipeline-alpha-integration-tests |
Changes
fixes #4276
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes