-
Notifications
You must be signed in to change notification settings - Fork 54
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
java.util.regex.PatternSyntaxException for HelmIgnorePathMatcher.addPatterns() #189
Comments
Something is odd here; note that this line in the relevant unit test works: microbean-helm/src/test/java/org/microbean/helm/chart/TestHelmIgnorePathMatcher.java Line 114 in 183f5f5
It is called here:
I wonder if it is a JDK version thing? Do you have more details about your situation? |
My jdk version is
If you want to test in this environment, you should specify the surefire plugin version as 3.0.0-M1, more information SUREFIRE-1588. |
It's going to be a problem in your microbean-helm/src/main/java/org/microbean/helm/chart/HelmIgnorePathMatcher.java Line 163 in 183f5f5
That's going to read in a Reverse engineering the error message, it looks like this regex:
…is resulting from the following
which doesn't make much sense to me. Could you send me the offending The fact that |
My
My windows jdk version:
BTW, where does the
|
This gets weirder and weirder. Note that the Travis build (Linux) passes: https://travis-ci.org/microbean/microbean-helm/jobs/432367395#L821 It is running with JDK 8 build 151: https://travis-ci.org/microbean/microbean-helm/jobs/432367395#L441 But I note that now on my (Mac) laptop with JDK 8 build 181 the test fails:
Investigating further but looks like maybe a regex regression in JDK 8. |
Hmm, even weirder. I can now reproduce this error at will on my laptop using JDK 8 builds 144, 162 and 181. There is definitely a bug in here somewhere. However, in order to actually release |
Somewhat more level-headed refinement: I can't reproduce the error actually described here. And I can make all the tests pass if I run So the pattern compilation is working fine on environments that use At issue now is what happens when the file separator is |
I got this problem too.
exception:
|
When I use sample codes to install helm charts, I got below exception:
It seems that the default constructor of HelmIgnorePathMatcher will try to call
addPattern("templates/.?*")
method and it will generate a regex pattern like^templates/\.[^\]?[^\]*$
which is an invalid one. Any help here?The text was updated successfully, but these errors were encountered: