Doroszlai, Attila created HDDS-2171:
---------------------------------------

             Summary: Dangling links in test report due to incompatible realpath
                 Key: HDDS-2171
                 URL: https://issues.apache.org/jira/browse/HDDS-2171
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
          Components: build
            Reporter: Doroszlai, Attila


Test summaries point to wrong locations, eg.:

{code:title=https://raw.githubusercontent.com/elek/ozone-ci/master/trunk/trunk-nightly-20190924-mj2km/integration/summary.md}
 * 
[org.apache.hadoop.ozone.scm.node.TestQueryNode](/tmp/log/trunk/trunk-nightly-20190924-mj2km/integration/workdir/hadoop-ozone/integration-test/org.apache.hadoop.ozone.scm.node.TestQueryNode.txt)
 
([output](/tmp/log/trunk/trunk-nightly-20190924-mj2km/integration/workdir/hadoop-ozone/integration-test/org.apache.hadoop.ozone.scm.node.TestQueryNode-output.txt/))
{code}

shouldn't include {{/workdir}}, nor {{/tmp/log/}}.

The root cause is that Busybox {{realpath}} does not accept options, rather 
returns absolute path:

{code:title=elek/ozone-build:20190825-1}
$ cd /etc
$ realpath --relative-to=$(pwd) motd
realpath: --relative-to=/etc: No such file or directory
/etc/motd
{code}

It worked previously because the docker image 
[was|https://github.com/elek/argo-ozone/commit/bad4b6747fa06c227dfcbff1f098f8d9c8179b79]
 based on a more complete Linux.

{code:title=elek/ozone-build:test}
$ cd /etc
$ realpath --relative-to=$(pwd) motd
motd
{code}

CC [~elek]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to