Skip to content
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

Fake filesystem changes to devfile parser #2667

Merged

Conversation

kanchwala-yusuf
Copy link
Contributor

What type of PR is this?

/kind feature

What does does this PR do / why we need it:
Accommodating review comments from #2500

Which issue(s) this PR fixes:

Fixes #2553

How to test changes / Special notes to the reviewer:
Devfile related actions should work without any errors.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. size/L labels Mar 3, 2020
@kanchwala-yusuf
Copy link
Contributor Author

/retest

1 similar comment
@kanchwala-yusuf
Copy link
Contributor Author

/retest

@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

Merging #2667 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2667      +/-   ##
==========================================
- Coverage   43.54%   43.51%   -0.03%     
==========================================
  Files          78       81       +3     
  Lines        7289     7565     +276     
==========================================
+ Hits         3174     3292     +118     
- Misses       3809     3958     +149     
- Partials      306      315       +9
Impacted Files Coverage Δ
pkg/devfile/parser/apiVersion.go 76.47% <100%> (ø) ⬆️
pkg/devfile/parser/content.go 83.33% <100%> (+0.72%) ⬆️
pkg/kclient/generators.go 100% <0%> (ø) ⬆️
pkg/envinfo/envinfo.go 63.63% <0%> (ø)
pkg/kclient/ingress.go 0% <0%> (ø)
pkg/kclient/secrets.go 0% <0%> (ø)
pkg/odo/util/cmdutils.go 2.35% <0%> (+0.51%) ⬆️
pkg/component/watch.go 74% <0%> (+1.33%) ⬆️
pkg/devfile/parser/fs.go 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c26e14...7a1ee4b. Read the comment docs.

@@ -39,8 +40,12 @@ func TestSetDevfileContent(t *testing.T) {
t.Run("valid file", func(t *testing.T) {

var (
tempDevfile = createTempDevfile(t, validJsonRawContent100())
d = DevfileCtx{absPath: tempDevfile.Name()}
fakeFs = filesystem.NewFakeFs()
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this test be converted to table format?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on this

@kanchwala-yusuf kanchwala-yusuf changed the title [WIP] Fake filesystem changes to devfile parser Fake filesystem changes to devfile parser Mar 9, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Mar 9, 2020
@kadel
Copy link
Member

kadel commented Mar 10, 2020

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kadel

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Mar 10, 2020
Copy link
Member

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

Tests look good!

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Mar 16, 2020
@openshift-merge-robot openshift-merge-robot merged commit a93f4da into redhat-developer:master Mar 16, 2020
@cdrage cdrage added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Apr 9, 2020
@rm3l rm3l added estimated-size/L (20-40) Rough sizing for Epics. About 2 sprints of work for a person. and removed size/L labels Jun 18, 2023
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. Required by Prow. estimated-size/L (20-40) Rough sizing for Epics. About 2 sprints of work for a person. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PR #2500 Followup
8 participants