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

Use example from the repo instead of downloading it #4207

Merged
merged 5 commits into from
Nov 13, 2020
Merged

Use example from the repo instead of downloading it #4207

merged 5 commits into from
Nov 13, 2020

Conversation

dharmit
Copy link
Member

@dharmit dharmit commented Nov 10, 2020

What type of PR is this?
/kind cleanup

What does this PR do / why we need it:
We need this to remove external dependency of downloading the code from GitHub each time in the test

Which issue(s) this PR fixes:
Fixes #3020

PR acceptance criteria:

How to test changes / Special notes to the reviewer:
Tests should pass.

@girishramnani
Copy link
Contributor

Sub modules are hard to maintain, are you sure about it?

@girishramnani
Copy link
Contributor

We would need to add a git submodule init & sync step in the readme

@dharmit
Copy link
Member Author

dharmit commented Nov 10, 2020

Sub modules are hard to maintain, are you sure about it?

I'm not. That's why I am seeking thoughts from others.

We would need to add a git submodule init & sync step in the readme

I think it's more like we'll have to sync if there's any change in the submodule repo that we want to use on our side. But I get what you're suggesting. It's not as straightforward as, maybe, cloning the code somewhere and doing a cp.

EDIT: I would, personally, put maintainability of the code above everything else. If we're not comfortable maintaining something in the long run, we should avoid it and make it more maintainable.

@adisky
Copy link
Contributor

adisky commented Nov 10, 2020

We are storing some external dependencies here https://github.com/openshift/odo/tree/master/tests/examples/source/devfiles/nodejs

We can add this one too, but i am not sure how maintainable it is to store all dependencies in odo.

@adisky
Copy link
Contributor

adisky commented Nov 10, 2020

This issue is reported before we started caching devfile registry, then it could be due to hitting github API rate limits.
have we seen this issue recently?

@kadel
Copy link
Member

kadel commented Nov 10, 2020

Sub modules are hard to maintain, are you sure about it?

I don't think that there is any reason why it needs to be a submodule. We can simply copy the samples we are already doing that it some examples.

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #4207 (97472cf) into master (fce3c77) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4207   +/-   ##
=======================================
  Coverage   42.57%   42.57%           
=======================================
  Files         156      156           
  Lines       13258    13258           
=======================================
  Hits         5645     5645           
  Misses       7012     7012           
  Partials      601      601           

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 fce3c77...97472cf. Read the comment docs.

@dharmit
Copy link
Member Author

dharmit commented Nov 10, 2020

It looks like we're unanimously sceptical of using submodule. 😄
I've removed the submodule thingy and simply copied the code for the repo.

@adisky
Copy link
Contributor

adisky commented Nov 11, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Nov 11, 2020
@mohammedzee1000
Copy link
Contributor

It might also be a good idea to add a script that updates the examples from its source, for when we need to.

@dharmit
Copy link
Member Author

dharmit commented Nov 12, 2020

It might also be a good idea to add a script that updates the examples from its source, for when we need to.

That would be over engineering things here, IMHO.

Copy link
Contributor

@mik-dass mik-dass left a comment

Choose a reason for hiding this comment

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

/lgtm

@girishramnani
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: girishramnani

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 Nov 12, 2020
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

12 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 2363910 into redhat-developer:master Nov 13, 2020
@dharmit dharmit deleted the fix-3020 branch January 7, 2021 03:35
@rm3l rm3l added the area/refactoring Issues or PRs related to code refactoring label Jun 16, 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. area/refactoring Issues or PRs related to code refactoring 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.

External dependencies in integrations test
10 participants