Skip to content

Commit b5bb4f4

Browse files
[Inference] Remove inference vcr tests (#1375)
same as huggingface/huggingface_hub#3021. I’ve just skipped the tests for now and removed VCR related code so that we can quickly re-enable or adapt them when we introduce proper inference tests, as mentioned by @Wauplin.
1 parent cd261f4 commit b5bb4f4

File tree

4 files changed

+3
-7710
lines changed

4 files changed

+3
-7710
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pnpm --filter ...[${{ steps.since.outputs.SINCE }}]... build
3939
4040
- name: Test
41-
run: VCR_MODE=playback pnpm --filter ...[${{ steps.since.outputs.SINCE }}] test
41+
run: pnpm --filter ...[${{ steps.since.outputs.SINCE }}] test
4242
env:
4343
HF_TOKEN: ${{ secrets.HF_TOKEN }}
4444

@@ -76,7 +76,7 @@ jobs:
7676
pnpm --filter ...[${{ steps.since.outputs.SINCE }}]... build
7777
7878
- name: Test in browser
79-
run: VCR_MODE=playback pnpm --filter ...[${{ steps.since.outputs.SINCE }}] test:browser
79+
run: pnpm --filter ...[${{ steps.since.outputs.SINCE }}] test:browser
8080
env:
8181
HF_TOKEN: ${{ secrets.HF_TOKEN }}
8282

packages/inference/test/InferenceClient.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
import { isUrl } from "../src/lib/isUrl";
1515
import { HARDCODED_MODEL_INFERENCE_MAPPING } from "../src/providers/consts";
1616
import { readTestFile } from "./test-files";
17-
import "./vcr";
1817

1918
const TIMEOUT = 60000 * 3;
2019
const env = import.meta.env;
@@ -23,7 +22,7 @@ if (!env.HF_TOKEN) {
2322
console.warn("Set HF_TOKEN in the env to run the tests for better rate limits");
2423
}
2524

26-
describe.concurrent("InferenceClient", () => {
25+
describe.skip("InferenceClient", () => {
2726
// Individual tests can be ran without providing an api key, however running all tests without an api key will result in rate limiting error.
2827

2928
describe("backward compatibility", () => {

0 commit comments

Comments
 (0)