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

Cleanup: move internal modules in subdirectories and remove/integrate util scripts #162

Merged
merged 7 commits into from Mar 22, 2017

Conversation

stdweird
Copy link
Member

@stdweird stdweird commented Jan 2, 2017

Based on #160 and #156 and new build-tools with quattor/maven-tools#121

Solving issues due to backwards incompatibility should not require the new release, 16.10 is sufficient

@stdweird stdweird added this to the 17.2 milestone Jan 2, 2017
@stdweird
Copy link
Member Author

stdweird commented Jan 2, 2017

Biggest change in component code to resolve any backwards incompatible issues will be to import unescape from CCM::Path instead of CCM::Element.
Any other usage of CCM modules directly is probably a mistake or some legacy behaviour that can be resovled with getTree usage.

I'd like to get master working on all repos without any backports for incompatibility; only after that stage, i can readd e.g. CCM::Element with unescape exports.

@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl ## no critic ((RequireVersionVar);
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not in favour of having to modify every single file with this per-line opt-out. Why not just disable the policy globally in PerlCritic? It's only activated at level 2 (the second highest) and perlcritic tends to get annoying and less useful at level 3, so I can't see us ever wanting to enable level 2 policies.

Copy link
Member Author

Choose a reason for hiding this comment

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

this workaround is only needed for scripts (so i think 4 or 5 in all repos); and this is a bug in critic, see Perl-Critic/Perl-Critic#711

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes me even less keen on it - it should only be needed temporarily and no one will be brave enough to remove it!

Copy link
Member Author

Choose a reason for hiding this comment

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

is resolved now

@@ -127,7 +127,11 @@ MakeCacheRoot($this_app, $cache_root, $dopts);

# make global lock file (mask and GID take care of the permissions)
$this_app->verbose("Creating lockfile");
<<<<<<< a5c81c552251e536424fd3de83ed2560cb70e952
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you've accidentally checked in a merge error?

@ned21
Copy link
Contributor

ned21 commented Jan 21, 2017

Looks like this needs a rebase against master once #160 is merged? 32ac5a0 should be squashed into 0e8bbc0 at the same time, in which case I think both commits cancel each other out.

@stdweird
Copy link
Member Author

@ned21 it's not that easy, it changes history from another PR if i do this. i'll clean this up once the other PRs are merged.

@stdweird
Copy link
Member Author

@ned21 rebased

@stdweird stdweird modified the milestones: 17.3, 17.2 Feb 16, 2017
# full directory path, and $ele_path is the element path (as string)
#
sub _resolve_eid
sub _resolve_enc_eid
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to rename every instance of eid to enc_eid. However isn't eid already short for "encoded id" -- in which case this is now a double encoded id? Is the enc added for clarity? In which case, should it be _resolve_enc_id ?

Copy link
Member Author

Choose a reason for hiding this comment

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

can you reread the pod in Encode.pm to see if it makes any sense at all? (it should also explain what an eid is (and it's not "encoded id", it's probably short for euhm, index? which is the response to "and how should we abbreviate this path counter?" 😄 )

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, pod in Encode.pm refers to "encoded eid" so I guess this is all consistent.

@ned21
Copy link
Contributor

ned21 commented Mar 5, 2017

Code looks OK except for the one question above. Now it's all rebased, is there a reason 3971e5c can't be squashed into the commit that introduced it?

@stdweird
Copy link
Member Author

stdweird commented Mar 6, 2017

@ned21 i have to look into the the squashing. it's a commit in the master, i'm afraid this will involve a push force to master

@ned21
Copy link
Contributor

ned21 commented Mar 6, 2017

I think you have a conflict with master but the conflict resolution in 10bfd63 is wrong (it results in things that are Not Perl). Sometimes git remembers previous conflict resolutions which can make it hard to redo them but if you squash the later commit into 10bfd63 then I think everything will be fine.

@stdweird stdweird force-pushed the more_cleanup branch 5 times, most recently from 221fb0a to ca26a2f Compare March 16, 2017 11:41
@stdweird
Copy link
Member Author

It's now a lot less backwards incompatible. the warn will prevent moving beyond maven-tools 1.50

@jrha
Copy link
Member

jrha commented Mar 21, 2017

Discussed at March 2017 workshop, no issues with the code but the first commit adds a set of merge conflict markers, which is very ugly.

@stdweird
Copy link
Member Author

@ned21 both commits deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants