Skip to content

Commit

Permalink
[meta] prepare releases
Browse files Browse the repository at this point in the history
Also clean up some TODOs.
  • Loading branch information
sunshowers committed May 23, 2024
1 parent 2f113ef commit fb3d3fc
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
10 changes: 9 additions & 1 deletion nextest-metadata/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Changelog

## Unreleased
## [0.11.0] - 2024-05-023

### Added

- `RustBuildMetaSummary` now has a new `platforms` field, which contains information about host and
target platforms. This field is provided by cargo-nextest 0.9.71 and above.

### Changed

- MSRV updated to Rust 1.73.
- `RustBuildMetaSummary::target_platforms` is now deprecated -- use
`RustBuildMetaSummary::platforms` if available.

## [0.10.0] - 2023-12-09

Expand Down Expand Up @@ -203,6 +210,7 @@ This release is compatible with cargo-nextest 0.9.10 and later.

- Initial version, with support for listing tests.

[0.11.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.11.0
[0.10.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.10.0
[0.9.3]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.9.3
[0.9.2]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.9.2
Expand Down
8 changes: 5 additions & 3 deletions nextest-metadata/src/test_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,19 +484,21 @@ pub struct RustBuildMetaSummary {
pub linked_paths: BTreeSet<Utf8PathBuf>,

/// The build platforms used while compiling the Rust artifacts.
///
/// Added in cargo-nextest 0.9.71.
#[serde(default)]
pub platforms: Option<BuildPlatformsSummary>,

/// The target platforms used while compiling the Rust artifacts.
///
/// Deprecated in favor of [`Self::platforms`]; use that if non-empty.
/// Deprecated in favor of [`Self::platforms`]; use that if available.
#[serde(default)]
pub target_platforms: Vec<PlatformSummary>,

/// A deprecated form of the target platform used for cross-compilation, if any.
///
/// This is no longer used by nextest, but is maintained for compatibility with older versions
/// which used to generate this.
/// Deprecated in favor of (in order) [`Self::platforms`] and [`Self::target_platforms`]; use
/// those if available.
#[serde(default)]
pub target_platform: Option<String>,
}
Expand Down
5 changes: 5 additions & 0 deletions nextest-runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.56.0] - 2024-05-23

See the changelog for [cargo-nextest 0.9.71](https://nexte.st/CHANGELOG.html#0971---2024-05-23).

## [0.55.0] - 2023-04-24

See the changelog for [cargo-nextest 0.9.70](https://nexte.st/CHANGELOG.html#0970---2024-04-24).
Expand Down Expand Up @@ -442,6 +446,7 @@ Thanks to [Guiguiprim](https://github.com/Guiguiprim) for their contributions to

- Initial version.

[0.56.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-runner-0.56.0
[0.55.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-runner-0.55.0
[0.54.1]: https://github.com/nextest-rs/nextest/releases/tag/nextest-runner-0.54.1
[0.54.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-runner-0.54.0
Expand Down
1 change: 0 additions & 1 deletion nextest-runner/src/config/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ impl ConfigIdentifier {
// Tool identifiers are of the form "@tool:identifier:identifier".

if let Some(suffix) = identifier.strip_prefix("@tool:") {
// TODO: finish this
let mut parts = suffix.splitn(2, ':');
let tool_name = parts
.next()
Expand Down
1 change: 0 additions & 1 deletion nextest-runner/src/list/output_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ impl SerializableFormat {
) -> Result<(), WriteTestListError> {
let out = match self {
SerializableFormat::Json => {
// TODO: convert WriteStr to io::Write rather than buffering the output in memory.
serde_json::to_string(value).map_err(WriteTestListError::Json)?
}
SerializableFormat::JsonPretty => {
Expand Down
1 change: 0 additions & 1 deletion nextest-runner/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ impl PlatformLibdir {

/// Converts a summary to a [`PlatformLibdir`].
pub fn from_summary(summary: PlatformLibdirSummary) -> Self {
// TODO: accept a path remapper
match summary {
PlatformLibdirSummary::Available { path: libdir } => Self::Available(libdir),
PlatformLibdirSummary::Unavailable { reason } => Self::Unavailable(reason),
Expand Down
23 changes: 23 additions & 0 deletions site/src/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
This page documents new features and bugfixes for cargo-nextest. Please see the [stability
policy](book/stability.md) for how versioning works with cargo-nextest.

## [0.9.71] - 2024-05-23

### Fixed

Previously, nextest would be unable to run proc-macro tests in some circumstances:

- On Windows, with rustup 1.27.2 and above
- On all platforms, if cargo is used without rustup, or if the `cargo-nextest` binary is invoked directly

With this release, proc-macros tests now work in all circumstances. This is done by nextest detecting Rust libdirs for the host and target platforms, and adding them to the library path automatically.

(There's also the less-common case of test binaries compiled with `-C prefer-dynamic`. These
situations now also work.)

See [#267](https://github.com/nextest-rs/nextest/issues/267) and [#1493](https://github.com/nextest-rs/nextest/issues/1493) for more details.

Thanks to [06393993](https://github.com/06393993) for your first contribution!

### Changed

As part of the above fix, libstd is now included in all archives. This makes archives around 4MB bigger, or around 8MB in cross-compilation scenarios. (It is possible to address this via config knobs -- if this is particularly bothersome to you, please post in [#1515](https://github.com/nextest-rs/nextest/issues/1515).)

## [0.9.70] - 2024-04-24

### Added
Expand Down Expand Up @@ -984,6 +1006,7 @@ Supported in this initial release:
- [Test retries](book/retries.md) and flaky test detection
- [JUnit support](book/junit.md) for integration with other test tooling

[0.9.71]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.71
[0.9.70]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.70
[0.9.69]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.69
[0.9.68]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.68
Expand Down

0 comments on commit fb3d3fc

Please sign in to comment.