-
Notifications
You must be signed in to change notification settings - Fork 172
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
Upgrade Asciidoctor core to 1.5.5 #550
Upgrade Asciidoctor core to 1.5.5 #550
Conversation
I could definitely see us doing the same for epub3 and diagram. But let's do pdf first and just get used to how that works. |
Hmm.... build failed on Java 8. |
Seems like there's really a problem with the test. |
The failing test is working fine on Windows 8.1 with Java 1.8.0_121. Edit: 2 test fail, but not really. The PDF test fail as we already know, and 'should render ditaa diagram to HTML', also fails but it's because the image path in the HTML is built with /, but the assertion uses \, but the document is correctly rendered. |
All fine on MacOS 1.8.0_60, however on Windows 7 with Java 1.8.0_111 I got an error on 'should_be_able_to_read_asset'
|
Oo... |
Being honest, the whole thing of running ruby gems in Java + Java extensions that get hooked into Ruby + compatibility with Java 6, 7, 8 and several OS is quite a feat. So some issues should not be unexpected, however this must never be discouraging. Back the topic, the only issue that really concerns me is the one with Java 7, I tested more and it only happens from shell, not from IntelliJ....overall...excluding the Travis issue, the others don't worry me enough to block the release:
|
Yes, you're right. Maybe I am just in a pessimistic phase right now ;) |
Tomorrow I will have a look at the first and third issue in more detail. But still no idea about the Travis issue :/ Maybe we can use this to store the tests reports? https://docs.travis-ci.com/user/uploading-artifacts/ |
I think this can be even further simplified. JRuby is not sufficiently tested on Windows. I have yet to see a recurring problem of JRuby running on *nix. Most of the time, the problems on Windows are related to path handling. I think this is a valid criticism of JRuby. We need to keep in mind that we can only offer as much as what JRuby affords us. In other words, I don't think we should burden ourselves trying to fix problems outside of our own scope. We can do it to a point...but at some point we have to say "we are waiting on upstream to fix that" |
I also wonder whether if there's a difference when using Bash vs command vs PowerShell on Windows. So "windows" isn't just one environment. |
The jbake gradle plugin is using the following configuration to output what tests are executed and what's going on. https://github.com/jbake-org/jbake-gradle-plugin/blob/master/build.gradle#L113-L130 I'll prepare a pull request. Maybe that helps debugging the problem. |
I can reproduce the failing tests running test-asciidoctor-upstream.sh on my local machine with java 8. |
Good point! |
OK, think I have the test errors now. The new errors come from the renaming of |
I noticed AppVeyor is not launching on PRs. Is as simple as doing this in
I can send a PR after merge. |
Strange, it looks rather that Github doesn't show the build result. I would be super-happy if you could create a PR to fix this test for Windows. |
I'm confused. I already added that alias so it should have 0 impact. Why doesn't AsciidoctorJ see the alias? https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/extensions.rb#L302 |
Yes, this is an official change. We did the same in Asciidoctor.js.
👍 |
Also keep in mind that it's no longer valid to use a backend name that doesn't resolve to a converter. We now check eagerly whether a converter can be resolved. Otherwise, we have the risk of a NilClass exception later on. I think one of the tests was using a bogus backend name, but not checking for an exception early enough. |
I really want this to work without a change to AsciidoctorJ. |
I'm not too happy about this either. If we find another way I would be more than happy, because it's really a hack, but is related to the fact that we support 2 versions of Asciidoctor in every build (latest release plus upstream). |
This PR bumps the version of Asciidoctor to 1.5.5 for the AsciidoctorJ 1.6.x branch.
Additionally it removes the asciidoctorj-pdf module as it lives in its own repo now.
Once this is merged I could release a new 1.6.0-alpha.4 so that there is a 1.6.0 release with the latest and greatest Asciidoctor core released again.