Skip to content

Commit

Permalink
Upgrade to Bazel 8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Dec 22, 2024
1 parent 498bb86 commit 4442f20
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.1
8.0.0
10 changes: 5 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module(
version = "0.0.0",
)

bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "rules_python", version = "0.19.0")
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0")
bazel_dep(name = "rules_shell", version = "0.2.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_python", version = "0.40.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.21.0")
bazel_dep(name = "rules_shell", version = "0.3.0")

# not a direct dependency, but required here for bazel starlib's difftest macros to work
bazel_dep(
Expand Down
32 changes: 23 additions & 9 deletions doc/integration_test_utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
## integration_test_utils.bazel_binary_label

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.bazel_binary_label(<a href="#integration_test_utils.bazel_binary_label-version">version</a>)
</pre>

Expand All @@ -17,7 +19,7 @@ Returns a label for the specified Bazel version as provided by https://github.co

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.bazel_binary_label-version"></a>version | A <code>string</code> value representing the semantic version of Bazel to use for the integration test. | none |
| <a id="integration_test_utils.bazel_binary_label-version"></a>version | A `string` value representing the semantic version of Bazel to use for the integration test. | none |

**RETURNS**

Expand All @@ -29,6 +31,8 @@ A `string` representing a label for a version of Bazel.
## integration_test_utils.bazel_binary_repo_name

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.bazel_binary_repo_name(<a href="#integration_test_utils.bazel_binary_repo_name-version">version</a>)
</pre>

Expand All @@ -39,7 +43,7 @@ Generates a Bazel binary repository name for the specified version.

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.bazel_binary_repo_name-version"></a>version | A <code>string</code> that represents a Bazel version or a label. | none |
| <a id="integration_test_utils.bazel_binary_repo_name-version"></a>version | A `string` that represents a Bazel version or a label. | none |

**RETURNS**

Expand All @@ -51,6 +55,8 @@ A `string` that is suitable for use as a repository name.
## integration_test_utils.bazel_integration_test_name

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.bazel_integration_test_name(<a href="#integration_test_utils.bazel_integration_test_name-name">name</a>, <a href="#integration_test_utils.bazel_integration_test_name-version">version</a>)
</pre>

Expand All @@ -61,8 +67,8 @@ Generates a test name from the provided base name and the Bazel version.

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.bazel_integration_test_name-name"></a>name | The base name as a <code>string</code>. | none |
| <a id="integration_test_utils.bazel_integration_test_name-version"></a>version | The Bazel semantic version as a <code>string</code>. | none |
| <a id="integration_test_utils.bazel_integration_test_name-name"></a>name | The base name as a `string`. | none |
| <a id="integration_test_utils.bazel_integration_test_name-version"></a>version | The Bazel semantic version as a `string`. | none |

**RETURNS**

Expand All @@ -74,6 +80,8 @@ A `string` that is suitable as an integration test name.
## integration_test_utils.bazel_integration_test_names

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.bazel_integration_test_names(<a href="#integration_test_utils.bazel_integration_test_names-name">name</a>, <a href="#integration_test_utils.bazel_integration_test_names-versions">versions</a>)
</pre>

Expand All @@ -84,8 +92,8 @@ Generates a `list` of integration test names based upon the provided base name a

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.bazel_integration_test_names-name"></a>name | The base name as a <code>string</code>. | none |
| <a id="integration_test_utils.bazel_integration_test_names-versions"></a>versions | A <code>list</code> of semantic version <code>string</code> values. | <code>[]</code> |
| <a id="integration_test_utils.bazel_integration_test_names-name"></a>name | The base name as a `string`. | none |
| <a id="integration_test_utils.bazel_integration_test_names-versions"></a>versions | A `list` of semantic version `string` values. | `[]` |

**RETURNS**

Expand All @@ -97,6 +105,8 @@ A `list` of integration test names as `string` values.
## integration_test_utils.glob_workspace_files

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.glob_workspace_files(<a href="#integration_test_utils.glob_workspace_files-workspace_path">workspace_path</a>)
</pre>

Expand All @@ -107,7 +117,7 @@ Recursively globs the Bazel workspace files at the specified path.

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.glob_workspace_files-workspace_path"></a>workspace_path | A <code>string</code> representing the path to glob. | none |
| <a id="integration_test_utils.glob_workspace_files-workspace_path"></a>workspace_path | A `string` representing the path to glob. | none |

**RETURNS**

Expand All @@ -120,6 +130,8 @@ A `list` of the files under the specified path ignoring certain Bazel
## integration_test_utils.is_version_file

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.is_version_file(<a href="#integration_test_utils.is_version_file-version">version</a>)
</pre>

Expand All @@ -130,7 +142,7 @@ Determines if the version string is a reference to a version file.

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.is_version_file-version"></a>version | A <code>string</code> that represents a Bazel version or a label. | none |
| <a id="integration_test_utils.is_version_file-version"></a>version | A `string` that represents a Bazel version or a label. | none |

**RETURNS**

Expand All @@ -142,6 +154,8 @@ A `bool` the specifies whether the string is a file reference.
## integration_test_utils.semantic_version_to_name

<pre>
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "integration_test_utils")

integration_test_utils.semantic_version_to_name(<a href="#integration_test_utils.semantic_version_to_name-version">version</a>)
</pre>

Expand All @@ -152,7 +166,7 @@ Converts a semantic version string (e.g. X.Y.Z) to a suitable name string (e.g.

| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
| <a id="integration_test_utils.semantic_version_to_name-version"></a>version | A semantic version <code>string</code>. | none |
| <a id="integration_test_utils.semantic_version_to_name-version"></a>version | A semantic version `string`. | none |

**RETURNS**

Expand Down
Loading

0 comments on commit 4442f20

Please sign in to comment.