libxml2-2.9.9 breaks a test of url_relative()
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- r
- 領域
- testing-qa
調査の方向性
Start with xml2::url_relative() and the upstream libxml2 uri.c:xmlBuildRelativePath() behavior; reproduce the mismatch using the R CMD Rscript invocation shown for libxml2 2.9.9. Locate the existing url_relative() test, then adjust its expectation to account for the reported result differences and run that test against relevant libxml2 versions.
索引モデルが issue の本文から書いたものです。
説明
Version 2.9.9 of libxml2.so changed uri.c:xmlBuildRelativePath() so that a test in the xml2 package (version 1.3.2) breaks:
url_relative("http://hadley.nz/a/c", "http://hadley.nz/") not equal to "../a/c".
1/1 mismatches
x[1]: "a/c"
y[1]: "../a/c"
I built the last few releases of libxml2 on a Linux box and got the following results.
erratic:bill:315% env LD_LIBRARY_PATH=`pwd`/libxml2-2.9.7/.libs:$LD_LIBRARY_PATH R CMD Rscript -e 'xml2::url_relative("http://foo.com/a/b/c", "http://foo.com/")'
[1] "../a/b/c"
erratic:bill:316% env LD_LIBRARY_PATH=`pwd`/libxml2-2.9.8/.libs:$LD_LIBRARY_PATH R CMD Rscript -e 'xml2::url_relative("http://foo.com/a/b/c", "http://foo.com/")'
[1] "../a/b/c"
erratic:bill:317% env LD_LIBRARY_PATH=`pwd`/libxml2-2.9.9/.libs:$LD_LIBRARY_PATH R CMD Rscript -e 'xml2::url_relative("http://foo.com/a/b/c", "http://foo.com/")'
[1] "a/b/c"
erratic:bill:318% env LD_LIBRARY_PATH=`pwd`/libxml2-2.9.10/.libs:$LD_LIBRARY_PATH R CMD Rscript -e 'xml2::url_relative("http://foo.com/a/b/c", "http://foo.com/")'
[1] "a/b/c"
I think both results are acceptable, although the one without the initial '../' seems better. In any case the test should be omitted or allow both results.
- 主要言語
- R
- スター
- 227
- フォーク
- 86
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
r-lib/xml2 のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Optimize xml_path() and xml_find_all() for large node sets対応中かも @astruebi が 182 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Bioconductor/BiocParallel#289 ·
-
automation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
waldronlab/BugSigDBcuration#2224 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
merliseclyde/BAS#118 ·