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

feat: send RunPart metadata to upload endpoint #57

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
1,211 changes: 762 additions & 449 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codspeed-runner"
version = "3.2.2"
version = "3.2.3-beta.2"
edition = "2021"
repository = "https://github.com/CodSpeedHQ/runner"
publish = false
Expand Down
11 changes: 10 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
"language": "en",
// words - list of words to be always considered correct
"words": [
"codspeed"
"adrien",
"adriencaccia",
"clippy",
"codspeed",
"insta",
"moonrepo",
"simplelog",
"thollander",
"tokenless",
"valgrind"
]
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.79.0"
channel = "1.84.0"
components = ["rustfmt", "clippy"]
10 changes: 8 additions & 2 deletions src/run/ci_provider/buildkite/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::env;
use simplelog::SharedLogger;

use crate::prelude::*;
use crate::run::ci_provider::interfaces::{Platform, RunPart};
use crate::run::helpers::{parse_git_remote, GitRemote};
use crate::run::{
ci_provider::{
Expand Down Expand Up @@ -127,8 +128,13 @@ impl CIProvider for BuildkiteProvider {
"Buildkite"
}

fn get_provider_slug(&self) -> &'static str {
"buildkite"
fn get_platform(&self) -> Platform {
Platform::Buildkite
}

/// For Buildkite, we don't support multipart uploads
fn get_platform_run_part(&self) -> Option<RunPart> {
None
}

fn get_ci_provider_metadata(&self) -> Result<CIProviderMetadata> {
Expand Down
Loading