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

[DO NOT MERGE] Add tests related to SCM feature (scm_folder and SVN monorepo) #4193

Closed
wants to merge 8 commits into from

Conversation

jgsogo
Copy link
Contributor

@jgsogo jgsogo commented Dec 24, 2018

Changelog: (Feature | Fix | Bugfix): Describe here your pull request
Docs: https://github.com/conan-io/docs/pull/XXXX

@conan-io/barbarians, here are two tests that are failing related to SCM feature (the optimization of the scm_folder.txt file). I want you to take a look at them:

  • SCMFolderObsoleteTest: scm_folder.txt will copy sources from local workspace, there can be unexpected files (a different version of the same library, in this test) 🤕
  • SCMFolderSVNCheckout: several tests here, using the same conanfile in different contexts, local workflow and conan create .. one, from the same folder and from a different one,... some use-cases related to the monorepo checkout fails, others print a is not a working copy SVN warning.
  • SCMFolderGitTest: creation in cache with nested dirs fails, but it may be ok.

Have a look to: #3831 (SVN warning, last comment), #3786

If fixed, it should close #4218 and close #4222

@ghost ghost assigned jgsogo Dec 24, 2018
@ghost ghost added the stage: review label Dec 24, 2018
@jgsogo jgsogo added this to the 1.12 milestone Dec 24, 2018
# Generate the scm_folder.txt file pointing to the src_path
src_path = scm.get_repo_root()
save(scm_src_file, src_path.replace("\\", "/"))
if get_bool_from_text(os.environ.get("USE_SCM_FOLER", "True")):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes are here just to be able to run tests without the scm_folder.txt file.

Copy link
Member

Choose a reason for hiding this comment

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

USE_SCM_FOLER => USE_SCM_FOLDER?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦‍♂️ ...at least it was copy/pasted everywhere

Copy link
Contributor

Choose a reason for hiding this comment

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

If this is only for testing I don't like it, but we could consider this a feature naming in properly: CONAN_USE_SCM_FOLDER. To discuss.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now it is only to make these tests possible. I want you all to review the tests, check the failing ones, they are showing some bugs that cannot be fixed without adding something else to the model.

@memsharded memsharded assigned lasote and unassigned jgsogo Dec 24, 2018
@memsharded
Copy link
Member

Agree this is important, and need some thinking and fixes.

@ghost ghost assigned jgsogo Dec 24, 2018
@jgsogo jgsogo changed the title Add tests related to SCM feature (scm_folder and SVN monorepo) [DO NOT MERGE] Add tests related to SCM feature (scm_folder and SVN monorepo) Jan 8, 2019
@jgsogo
Copy link
Contributor Author

jgsogo commented Jan 17, 2019

These tests, fixes and implementation are being done in:

#4249

#4301

@jgsogo jgsogo closed this Jan 17, 2019
@ghost ghost removed the stage: review label Jan 17, 2019
@lasote lasote removed this from the 1.12 milestone Jan 17, 2019
@jgsogo jgsogo deleted the bug/scm_folder branch January 29, 2019 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants