maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Mulders (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (MNG-6951) Failing integration test MNG-6386 (Unicode chars) on macOS
Date Thu, 02 Jul 2020 09:18:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150103#comment-17150103
] 

Maarten Mulders edited comment on MNG-6951 at 7/2/20, 9:17 AM:
---------------------------------------------------------------

All right, here's what I did.

I've recreated the directory with {{mkdir "mng-6386-это по-русский"}}.

Then I ran the following snippet in the Python 3 REPL:
{code:python}
import os
for file in os.listdir("."):
    print(file.encode('utf-8'))
{code}
Which outputted
{code}b'mng-6386-\xd1\x8d\xd1\x82\xd0\xbe \xd0\xbf\xd0\xbe-\xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9'{code}
And here's the [dtruss output|https://issues.apache.org/jira/secure/attachment/13006896/dtruss-python3.txt].

Then I ran the following snippet in JShell (OpenJDK 11):
{code:java}
import java.nio.file.*
Path dir = Paths.get("/users" , "maarten", "Junk" , "mng-6951");
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {
    stream.forEach(path -> System.out.println(path.toUri().toASCIIString()));
}
{code}
Which outputted
{code}file:///users/maarten/Junk/mng-6951/mng-6386-%D1%8D%D1%82%D0%BE%20%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9/{code}
And here's the [dtruss output|https://issues.apache.org/jira/secure/attachment/13006895/dtruss-java.txt].


was (Author: mthmulders):
All right, here's what I did.

I've recreated the directory with {{mkdir "mng-6386-это по-русский"}}.

Then I ran the following snippet in the Python 3 REPL:
{code:python}
import os
for file in os.listdir("."):
    print(file.encode('utf-8'))
{code}
Which outputted
{code}b'mng-6386-\xd1\x8d\xd1\x82\xd0\xbe \xd0\xbf\xd0\xbe-\xd1\x80\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9'{code}

Then I ran the following snippet in JShell (OpenJDK 11):
{code:java}
import java.nio.file.*
Path dir = Paths.get("/users" , "maarten", "Junk" , "mng-6951");
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {
    stream.forEach(path -> System.out.println(path.toUri().toASCIIString()));
}
{code}
Which outputted
{code}file:///users/maarten/Junk/mng-6951/mng-6386-%D1%8D%D1%82%D0%BE%20%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9/{code}

I'll attach the new dtruss outputs in a minute.

> Failing integration test MNG-6386 (Unicode chars) on macOS
> ----------------------------------------------------------
>
>                 Key: MNG-6951
>                 URL: https://issues.apache.org/jira/browse/MNG-6951
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>         Environment: macOS
>            Reporter: Maarten Mulders
>            Priority: Minor
>         Attachments: Screenshot 2020-07-01 at 15.28.33.png, dtruss-java.txt, dtruss-output.txt,
dtruss-python-output.txt, dtruss-python3.txt, log-basic.txt, profile.properties
>
>
> Ever since I started contributing on Maven, I noticed that there's one integration test
that fails on my machine (a Macbook). The test is located in the {{MavenITmng6386BaseUriPropertyTest}}
class, more specifically the {{testitMNG6386UnicodeChars}} method.
> I always thought it would be "just" my machine but in the last week, two things happened.
>  # I reinstalled macOS on my machine. Unfortunately, the test still fails on the freshly
installed macOS.
>  # Together with [~MartinKanters], I started experimenting with GitHub actions, which
also provides free macOS builds. The test also fails on those machines.
> I've tried to debug why the test fails. The assertion that fails is the last one, which
checks for some Russian text in a property. But I don't understand the reason for the failure.
> The {{mng-6386-это по-русский}} folder gets checked out by Git on APFS using
the expected filename, as you can see in the attached screenshot.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message