Commit ece2f378 authored by Pascal Bach's avatar Pascal Bach
Browse files

Update dependencies

parent 62bd2825
......@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [0.14.4] - 2021-07-20
### Fixed
- Prefer custom refspec
### Changed
- Update dependencies
## [0.14.3] - 2021-06-24
### Fixed
......
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "0.7.18"
......@@ -61,9 +63,9 @@ checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
[[package]]
name = "cc"
version = "1.0.68"
version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787"
checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2"
[[package]]
name = "cfg-if"
......@@ -313,7 +315,7 @@ dependencies = [
[[package]]
name = "git-mirror"
version = "0.14.3"
version = "0.14.4"
dependencies = [
"chrono",
"env_logger",
......@@ -353,9 +355,9 @@ dependencies = [
[[package]]
name = "hashbrown"
version = "0.9.1"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
[[package]]
name = "heck"
......@@ -368,9 +370,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
version = "0.1.18"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
......@@ -417,9 +419,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "0.14.9"
version = "0.14.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07d6baa1b441335f3ce5098ac421fb6547c46dda735ca1bc6d0153c838f9dd83"
checksum = "7728a72c4c7d72665fde02204bcbd93b247721025b222ef78606f14513e0fd03"
dependencies = [
"bytes",
"futures-channel",
......@@ -465,9 +467,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "1.6.2"
version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3"
checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
dependencies = [
"autocfg",
"hashbrown",
......@@ -475,9 +477,9 @@ dependencies = [
[[package]]
name = "instant"
version = "0.1.9"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec"
checksum = "bee0328b1209d157ef001c94dd85b4f8f64139adb0eac2659f4b08382b2f474d"
dependencies = [
"cfg-if",
]
......@@ -505,9 +507,9 @@ dependencies = [
[[package]]
name = "junit-report"
version = "0.5.0"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c141da489e41a4ce6fe7c5242ce053616072cdb9827a596fa60b7d46e32cc2a"
checksum = "4bc92bb61f860b8a88189e67820acdb13fd00149dac50fa365b232d27de34a18"
dependencies = [
"chrono",
"derive-getters",
......@@ -524,9 +526,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libc"
version = "0.2.97"
version = "0.2.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12b8adadd720df158f4d70dfe7ccc6adb0472d7c55ca83445f6a5ab3e36f8fb6"
checksum = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790"
[[package]]
name = "linked-hash-map"
......@@ -739,9 +741,9 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
[[package]]
name = "pin-project-lite"
version = "0.2.6"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905"
checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
[[package]]
name = "pin-utils"
......@@ -1170,18 +1172,18 @@ dependencies = [
[[package]]
name = "thiserror"
version = "1.0.25"
version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa6f76457f59514c7eeb4e59d891395fab0b2fd1d40723ae737d64153392e9c6"
checksum = "93119e4feac1cbe6c798c34d3a53ea0026b0b1de6a120deef895137c0529bfe2"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.25"
version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a36768c0fbf1bb15eca10defa29526bda730a2376c2ab4393ccfa16fb1a318d"
checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745"
dependencies = [
"proc-macro2",
"quote",
......@@ -1215,9 +1217,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tokio"
version = "1.7.1"
version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fb2ed024293bb19f7a5dc54fe83bf86532a44c12a2bb8ba40d64a4509395ca2"
checksum = "c2602b8af3767c285202012822834005f596c811042315fa7e9f5b12b2a43207"
dependencies = [
"autocfg",
"bytes",
......@@ -1305,9 +1307,9 @@ dependencies = [
[[package]]
name = "unicode-segmentation"
version = "1.7.1"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796"
checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b"
[[package]]
name = "unicode-width"
......
[package]
name = "git-mirror"
version = "0.14.3"
version = "0.14.4"
authors = ["Pascal Bach <pascal.bach@nextrem.ch>"]
description = "Sync between different git repositories."
license = "MIT"
......@@ -25,7 +25,7 @@ fs2 = "0.4"
prometheus = "0.12"
reqwest = {version = "0.11", features = ["native-tls-vendored", "blocking"] }
openssl-probe = "0.1"
junit-report = "0.5"
junit-report = "0.6"
structopt = "0.3"
[profile.release]
......
......@@ -28,7 +28,9 @@ use rayon::iter::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIter
// Time handling
use chrono::{Local, Utc};
use junit_report::{DateTime, Report, TestCase, TestSuite};
use junit_report::{
DateTime, ReportBuilder, TestCase, TestCaseBuilder, TestSuite, TestSuiteBuilder,
};
// Monitoring;
use prometheus::register_gauge_vec;
......@@ -159,7 +161,7 @@ fn run_sync_task(v: &[MirrorResult], label: &str, opts: &MirrorOptions) -> TestS
.with_label_values(&[&x.origin, &x.destination, &label])
.set(Utc::now().timestamp() as f64);
proj_ok.with_label_values(&[&label]).inc();
TestCase::success(&name, Utc::now() - start)
TestCaseBuilder::success(&name, Utc::now() - start).build()
}
Err(e) => {
println!(
......@@ -175,12 +177,13 @@ fn run_sync_task(v: &[MirrorResult], label: &str, opts: &MirrorOptions) -> TestS
.set(Utc::now().timestamp() as f64);
proj_fail.with_label_values(&[&label]).inc();
error!("Unable to sync repo {} ({})", name, e);
TestCase::error(
TestCaseBuilder::error(
&name,
Utc::now() - start,
"sync error",
&format!("{:?}", e),
)
.build()
}
}
}
......@@ -191,11 +194,12 @@ fn run_sync_task(v: &[MirrorResult], label: &str, opts: &MirrorOptions) -> TestS
match e {
MirrorError::Description(d, se) => {
error!("Error parsing YAML: {}, Error: {:?}", d, se);
TestCase::error("", duration, "parse error", &format!("{:?}", e))
TestCaseBuilder::error("", duration, "parse error", &format!("{:?}", e))
.build()
}
MirrorError::Skip(url) => {
println!("SKIP {}/{} [{}]: {}", i, total, Local::now(), url);
TestCase::skipped(url)
TestCaseBuilder::skipped(url).build()
}
}
}
......@@ -204,8 +208,9 @@ fn run_sync_task(v: &[MirrorResult], label: &str, opts: &MirrorOptions) -> TestS
.collect::<Vec<TestCase>>();
let success = results.iter().filter(|ref x| x.is_success()).count();
let ts = TestSuite::new("Sync Job");
let ts = ts.add_testcases(results);
let ts = TestSuiteBuilder::new("Sync Job")
.add_testcases(results)
.build();
println!("DONE [{2}]: {0}/{1}", success, total, Local::now());
ts
}
......@@ -294,7 +299,7 @@ fn write_metrics(f: &Path) {
}
fn write_junit_report(f: &Path, ts: TestSuite) {
let report = Report::default().add_testsuite(ts);
let report = ReportBuilder::default().add_testsuite(ts).build();
let mut file = File::create(f).unwrap();
report.write_xml(&mut file).unwrap();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment