Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(http): Support servers that fail with HTTP 501 on HEAD requests #709

Merged
merged 3 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
cache-dependency-path: |
package-lock.json
examples/**/package-lock.json
# uv required for javascript tests
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
# go needed for fake_gcs_server used by the javascript tests
- name: Setup go
uses: actions/setup-go@v5
Expand Down
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"**/build",
"**/.tox",
"**/.nox",
"**/.venv",
"lib",
"**/python",
"**/config",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dist
/.ruff_cache
package.json
package-lock.json
.venv
32 changes: 32 additions & 0 deletions build_tools/vitest/python_tools.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* @license
* Copyright 2025 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { spawnSync } from "node:child_process";
import path from "node:path";

export const PYTHON_TEST_TOOLS_PATH = path.join(
import.meta.dirname,
"python_tools",
);

export async function syncPythonTools() {
// Note: For unknown reasons, using `await promisify(spawn)` in place of
// `spawnSync` causes the vitest process to exit as soon as the child
// process completes.
spawnSync("uv", ["sync", "--project", PYTHON_TEST_TOOLS_PATH], {
stdio: ["ignore", "inherit", "inherit"],
});
}
8 changes: 8 additions & 0 deletions build_tools/vitest/python_tools/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[project]
name = "python-tools"
description = "Python tools used by the test suite"
version = "0.0"
requires-python = ">=3.11"
dependencies = [
"moto[s3,server]>=5.0.28",
]
1,091 changes: 1,091 additions & 0 deletions build_tools/vitest/python_tools/uv.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default tseslint.config(
"**/build",
"**/.tox",
"**/.nox",
"**/.venv",
"lib",
"**/python",
"**/config",
Expand Down
2 changes: 0 additions & 2 deletions examples/parcel/parcel-project-source/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions examples/rsbuild/rsbuild-project-source/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions examples/rspack/rspack-project-source/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions examples/vite/vite-project-source/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions examples/webpack/webpack-project-source/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading