release(3.0.0-beta.1): product version migration, beta gates, archive tooling and developer docs
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
REL-01: workspace/CLI/Analysis product version 3.0.0-beta.1 with updated Cargo.lock; project.marqdo is enforced against the running core with package.marqdo_range_invalid/package.marqdo_incompatible fail-closed diagnostics; Tool SemVer prerelease negotiation tests; init template and examples use the beta range. Verify init derives the project name from the target directory instead of falling back to 'example'. REL-02: beta support matrix is Linux x86_64 only; macOS/Windows are explicitly experimental/unclaimed; strict policy and G4 Beta-only WARN are documented for the release evidence. REL-03: deterministic release packaging (tools/release/package.py) ships the CLI and provider worker together with SOURCE_SHA, RELEASE_INFO.json, known-limitations, specs, developer docs, examples incl. built plugin/provider artifacts and consumers; tools/release/smoke.py cold-install tests the archive. REL-04: docs/developers entry pages; corrected and self-contained third-party integration handbook; stale Proposed/native-only/informational spec claims fixed; release/status/compatibility/changelog/releasing docs updated. REL-05: release_evidence.py gains an explicit beta profile (BETA_RELEASE_CANDIDATE) distinct from the stable profile; Woodpecker build step now packages and smoke-tests the archive on every pipeline. Adds a runnable Resource Provider v2 example and corrects check --emit to Analysis v2.
This commit is contained in:
1 parent
56189b176c
commit
2c7c4f31e7
55 files changed
+3136
-453
No files matched your search
@@ -393,6 +393,9 @@ impl Manifest {
|
||||
if self.project.version.trim().is_empty() {
|
||||
return Err("project.version must not be empty".to_string());
|
||||
}
|
||||
if let Some(range) = &self.project.marqdo {
|
||||
validate_core_range(range)?;
|
||||
}
|
||||
for (name, dependency) in &self.dependencies {
|
||||
dependency.validate(name)?;
|
||||
}
|
||||
@@ -420,7 +423,7 @@ impl Manifest {
|
||||
project: ProjectInfo {
|
||||
name: project_name.to_string(),
|
||||
version: "0.1.0".to_string(),
|
||||
marqdo: Some(">=0.1,<1".to_string()),
|
||||
marqdo: Some(">=3.0.0-beta.1,<4.0.0".to_string()),
|
||||
},
|
||||
dependencies: BTreeMap::new(),
|
||||
plugins: BTreeMap::new(),
|
||||
@@ -430,6 +433,31 @@ impl Manifest {
|
||||
}
|
||||
}
|
||||
|
||||
/// Enforce the optional `project.marqdo` runtime range.
|
||||
///
|
||||
/// The field was informational before the 3.0 beta; a project that declares a
|
||||
/// range the running core does not satisfy must fail closed with a clear
|
||||
/// diagnostic instead of being silently ignored. SemVer prerelease semantics
|
||||
/// apply: a stable-only range such as `>=3.0.0,<4.0.0` does not accept
|
||||
/// `3.0.0-beta.1`, so prerelease users must opt in explicitly.
|
||||
fn validate_core_range(range: &str) -> Result<(), String> {
|
||||
let requirement = semver::VersionReq::parse(range).map_err(|error| {
|
||||
format!(
|
||||
"package.marqdo_range_invalid: project.marqdo `{range}` is not a valid SemVer requirement: {error}"
|
||||
)
|
||||
})?;
|
||||
let core = semver::Version::parse(env!("CARGO_PKG_VERSION")).map_err(|error| {
|
||||
format!("package.marqdo_range_invalid: core version is not valid SemVer: {error}")
|
||||
})?;
|
||||
if !requirement.matches(&core) {
|
||||
return Err(format!(
|
||||
"package.marqdo_incompatible: project requires marqdo `{range}`, this core is {}",
|
||||
env!("CARGO_PKG_VERSION")
|
||||
));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// How a resolved package was obtained. Identity does not depend on this.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum PackageOrigin {
|
||||
@@ -2057,6 +2085,36 @@ capabilities:
|
||||
assert_eq!(manifest.capabilities.process, Some(false));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn project_marqdo_range_is_enforced_against_the_running_core() {
|
||||
let core = env!("CARGO_PKG_VERSION");
|
||||
assert!(
|
||||
Manifest::template("template-project").validate().is_ok(),
|
||||
"the init template must be runnable by the core that writes it"
|
||||
);
|
||||
let accepted =
|
||||
format!("project:\n name: p\n version: 0.1.0\n marqdo: \">={core},<4.0.0\"\n");
|
||||
Manifest::from_yaml(&accepted).expect("an explicit opt-in range must be accepted");
|
||||
|
||||
let stale = "project:\n name: p\n version: 0.1.0\n marqdo: \">=0.1,<1\"\n";
|
||||
let error = Manifest::from_yaml(stale).unwrap_err();
|
||||
assert!(
|
||||
error.contains("package.marqdo_incompatible"),
|
||||
"stale range must fail closed: {error}"
|
||||
);
|
||||
assert!(
|
||||
error.contains(core),
|
||||
"diagnostic must name the core: {error}"
|
||||
);
|
||||
|
||||
let invalid = "project:\n name: p\n version: 0.1.0\n marqdo: \"not a range\"\n";
|
||||
let error = Manifest::from_yaml(invalid).unwrap_err();
|
||||
assert!(
|
||||
error.contains("package.marqdo_range_invalid"),
|
||||
"invalid range must be rejected: {error}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn git_dependency_requires_rev() {
|
||||
let yaml = "project:\n name: p\n version: 0.1.0\ndependencies:\n x:\n git: https://example/x\n";
|
||||
|
||||
Reference in new issue
Block a user