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

未关闭 适合新手
#11,260 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tensorflow/datasets 的其他 Issue

查看 tensorflow/datasets 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。