Repository navigation
Conversation
…e model sacrebleu downloads the FLORES-200 SentencePiece model from dl.fbaipublicfiles.com the first time it builds a flores200 tokenizer. That host's TLS certificate expired on 2026-11-11, so 21 tests in TestVerify, TestScoreMissingComet and TestComputeMetrics failed with CERTIFICATE_VERIFY_FAILED on every CI run that includes this server. The tests now train a small SentencePiece model from the sentences they score, point sacrebleu's model directory at it, and fail any test that would still download a model. spBLEU keeps running the real sacrebleu BLEU and SentencePiece code; app.py is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
Contributor
Author
|
/ok to test b41a69e |
This was referenced Nov 12, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
resources_servers/wmt_translation/tests/test_app.pygets two fixtures. No other file changes.local_spm_sacrebleu_dir(session-scoped) trains a small SentencePiece unigram model from the four sentences the spBLEU tests score. It writes the model where sacrebleu looks for the FLORES-200 model (<dir>/models/flores200sacrebleuspm).offline_spbleu_tokenizer(autouse) pointssacrebleu.tokenizers.tokenizer_spm.SACREBLEU_DIRat that directory. It also replacestokenizer_spm.download_filewith a function that fails the test, so a later test can't quietly go back to downloading.app.pyis unchanged. Production spBLEU still uses the FLORES-200 model.Why
sacrebleu downloads the FLORES-200 SentencePiece model the first time it builds a
flores200tokenizer. The URL ishttps://tinyurl.com/flores200sacrebleuspm, which redirects todl.fbaipublicfiles.com. That host's TLS certificate expired on 2026-11-11 at 23:59:59 GMT. Since then, 21 tests inTestVerify,TestScoreMissingCometandTestComputeMetricsfail withurllib.error.URLError: ... CERTIFICATE_VERIFY_FAILED ... certificate has expired. This happens in every CI run that includes this server, including the scheduled Full test suite onmain(for example run 43151999283, job "Server suite (shard 7)"). Retrying doesn't help, and server unit tests shouldn't depend on an outside host anyway.The tests still check real spBLEU behavior. sacrebleu's BLEU runs on real SentencePiece segmentation, and only the vocabulary is small. The existing assertions hold for any SentencePiece model: identical text scores 100, NFC-equivalent text scores 100, slight variants score above 0, and the per-pair and cross-pair keys are present. The tests that check the tokenizer name (
tokenize="flores200") are unchanged. The fixture docstring says that spBLEU values in these tests are not FLORES-200 values.Issue: none. The breakage comes from an outside host, the fix is test-only, and no existing issue or PR covers it.
Validation
Ran on a Linux host. The server venv was built from the lock with
uv sync --locked --python 3.13.14 --no-dev(uv 0.13.7). The server directory and repo root were onPYTHONPATH, asgym env testdoes.SACREBLEUpointed at an empty directory, like a fresh CI container.unshare -rnran the tests with no network at all.unshare -rn)tests/test_app.py, no networkmain'stests/test_app.py, no networkpre-commit run --files resources_servers/wmt_translation/tests/test_app.py: passed.Rollout evidence
N/A. This is a test-only change.
verify(),compute_metrics()and the spBLEU tokenizer used in production are unchanged.Compatibility
None. No user-facing, config or benchmark-result changes.
🤖 Generated with Claude Code