criteo: download URL redirects to a host that no longer resolves

オープン 初心者向け
#11,260 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, tensorflow

調査の方向性

tensorflow_datasets/recommendation/criteo/criteo.py の139行目付近と、criteo/checksums.tsv の最初のエントリを読みます。両方の箇所のダウンロードURLを、issueに記載された検証済みのHugging FaceファイルURLに更新し、記録済みのチェックサムとサイズは維持します。builderが動作するソースを使い、チェックサムの検証結果が引き続き一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Short description

tensorflow_datasets/recommendation/criteo/criteo.py line 139 (master 252301a) downloads http://go.criteo.net/criteo-research-uplift-v2.1.csv.gz. That URL answers 302 to https://criteostorage.blob.core.windows.net/criteo-research-datasets/criteo-uplift-v2.1.csv.gz, and criteostorage.blob.core.windows.net does not resolve (NXDOMAIN from 8.8.8.8 as well), so the file cannot be downloaded from this URL. A HEAD request to the go.criteo.net URL answers 404 instead of 302. Criteo's dataset page, the builder's homepage (line 132), still links the same go.criteo.net URL.

Environment information

I did not run TFDS; the failure is in the URL that criteo.py and criteo/checksums.tsv hold on master, checked with curl 8.5.0 on Ubuntu 24.04 on 2026-11-30.

Reproduction instructions

$ curl -sS -D - -o /dev/null http://go.criteo.net/criteo-research-uplift-v2.1.csv.gz
HTTP/1.1 302 Found
location: https://criteostorage.blob.core.windows.net/criteo-research-datasets/criteo-uplift-v2.1.csv.gz
$ curl -sSL -o /dev/null http://go.criteo.net/criteo-research-uplift-v2.1.csv.gz
curl: (6) Could not resolve host: criteostorage.blob.core.windows.net
$ getent hosts criteostorage.blob.core.windows.net; echo "exit $?"
exit 2
$ curl -sSI http://go.criteo.net/criteo-research-uplift-v2.1.csv.gz | head -1
HTTP/1.1 404 Not Found

Expected behavior

A working source for the same file. Criteo's verified organization on Hugging Face publishes it in the dataset criteo/criteo-uplift:

https://huggingface.co/datasets/criteo/criteo-uplift/resolve/2424920019e49d52d72c13ac1143ec5d53af276b/criteo-research-uplift-v2.1.csv.gz

At that revision the file is 311,422,618 bytes with SHA-256 2716e1bf0fd157a93b5bf86924d9088419dfbac2022c6cd90030220634f616dc, the same size and checksum as the line in criteo/checksums.tsv:

$ curl -sSI https://huggingface.co/datasets/criteo/criteo-uplift/resolve/2424920019e49d52d72c13ac1143ec5d53af276b/criteo-research-uplift-v2.1.csv.gz | grep -i '^HTTP\|^x-linked'
HTTP/2 302
x-linked-size: 311422618
x-linked-etag: "2716e1bf0fd157a93b5bf86924d9088419dfbac2022c6cd90030220634f616dc"

I downloaded that file for another project and its SHA-256 is the one above: https://github.com/sHyanorn/uplift-checks/blob/acd0876544041f4efc0afe320f06bd5bb11f7631/ranking/PREREGISTRATION.md?plain=1#L19

Replacing the URL on line 139 and in the first column of checksums.tsv keeps the recorded size and checksum, so VERSION 1.0.1 would not change. I can open a pull request with that change.

主要言語
Python
スター
4.6k
フォーク
1.6k
平均マージ
14時間 3分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/datasets のほかの issue

tensorflow/datasets の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。