From 992f3793aa6ac798c6ea370ad0125ed55fbb5b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smolarek?= <34063647+Razz4780@users.noreply.github.com> Date: Tue, 30 Jul 2024 21:29:44 +0200 Subject: [PATCH] 3.112.0 (#2618) --- CHANGELOG.md | 46 ++++++++++++++++ Cargo.lock | 54 +++++++++---------- Cargo.toml | 2 +- ...544-operator-statefulset-target.changed.md | 1 - changelog.d/+exec-hooks.fixed.md | 1 - changelog.d/+license-check.fixed.md | 1 - changelog.d/+run-medschool.internal.md | 1 - changelog.d/+tests-lint-in-ci.internal.md | 1 - .../+warn-multiple-containers.added.md | 1 - changelog.d/2068.added.md | 9 ---- changelog.d/721.fixed.md | 1 - changelog.d/864.fixed.md | 1 - 12 files changed, 74 insertions(+), 45 deletions(-) delete mode 100644 changelog.d/+544-operator-statefulset-target.changed.md delete mode 100644 changelog.d/+exec-hooks.fixed.md delete mode 100644 changelog.d/+license-check.fixed.md delete mode 100644 changelog.d/+run-medschool.internal.md delete mode 100644 changelog.d/+tests-lint-in-ci.internal.md delete mode 100644 changelog.d/+warn-multiple-containers.added.md delete mode 100644 changelog.d/2068.added.md delete mode 100644 changelog.d/721.fixed.md delete mode 100644 changelog.d/864.fixed.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 04391931837..3cf46bdeddc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,52 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [3.112.0](https://github.com/metalbear-co/mirrord/tree/3.112.0) - 2024-07-30 + + +### Added + +- Add fs mapping, under `feature.fs.mapping` now it's possible to specify regex + match and replace for paths while running mirrord exec. + + Example: + + ```toml + [feature.fs.mapping] + "/var/app/temp" = "/tmp" # Will replace all calls to read/write/scan for + "/var/app/temp/sample.txt" to "/tmp/sample.txt" + "/var/app/.cache" = "/workspace/mirrord$0" # Will replace + "/var/app/.cache/sample.txt" to + "/workspace/mirrord/var/app/.cache/sample.txt" see + [Regex::replace](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace) + ``` [#2068](https://github.com/metalbear-co/mirrord/issues/2068) +- Warning when mirrord automatically picked one of multiple containers on the + target. + + +### Changed + +- Allows targeting StatefulSet without the copy_target feature (still requires + operator though). + + +### Fixed + +- Remove invalid schema doc mentioning podname as a valid pod target selector. + [#721](https://github.com/metalbear-co/mirrord/issues/721) +- Pass the list of UserSocket to child processes when exec is called through an + env var MIRRORD_SHARED_SOCKETS. + [#864](https://github.com/metalbear-co/mirrord/issues/864) +- Fixed an issue where operator license was incorrectly recognized as expired + when it was expiring later the same day. +- Fixed new exec hooks breaking execution of Flask apps. + + +### Internal + +- Added `clippy` check on test code to the CI. +- Regenerated config docs. + ## [3.111.0](https://github.com/metalbear-co/mirrord/tree/3.111.0) - 2024-07-17 diff --git a/Cargo.lock b/Cargo.lock index 11fc3ebd188..fd7558ec9e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2112,7 +2112,7 @@ dependencies = [ [[package]] name = "fileops" -version = "3.111.0" +version = "3.112.0" dependencies = [ "libc", ] @@ -3106,7 +3106,7 @@ checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" [[package]] name = "issue1317" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-web", "env_logger 0.11.3", @@ -3117,7 +3117,7 @@ dependencies = [ [[package]] name = "issue1776" -version = "3.111.0" +version = "3.112.0" dependencies = [ "errno 0.3.9", "libc", @@ -3126,7 +3126,7 @@ dependencies = [ [[package]] name = "issue1776portnot53" -version = "3.111.0" +version = "3.112.0" dependencies = [ "libc", "socket2", @@ -3134,14 +3134,14 @@ dependencies = [ [[package]] name = "issue1899" -version = "3.111.0" +version = "3.112.0" dependencies = [ "libc", ] [[package]] name = "issue2001" -version = "3.111.0" +version = "3.112.0" dependencies = [ "libc", ] @@ -3475,7 +3475,7 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "listen_ports" -version = "3.111.0" +version = "3.112.0" [[package]] name = "local-channel" @@ -3691,7 +3691,7 @@ checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" [[package]] name = "mirrord" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-codec", "anyhow", @@ -3737,7 +3737,7 @@ dependencies = [ [[package]] name = "mirrord-agent" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-codec", "async-trait", @@ -3795,7 +3795,7 @@ dependencies = [ [[package]] name = "mirrord-analytics" -version = "3.111.0" +version = "3.112.0" dependencies = [ "assert-json-diff", "base64 0.22.1", @@ -3809,7 +3809,7 @@ dependencies = [ [[package]] name = "mirrord-auth" -version = "3.111.0" +version = "3.112.0" dependencies = [ "bcder", "chrono", @@ -3830,7 +3830,7 @@ dependencies = [ [[package]] name = "mirrord-config" -version = "3.111.0" +version = "3.112.0" dependencies = [ "bimap", "bitflags 2.5.0", @@ -3852,7 +3852,7 @@ dependencies = [ [[package]] name = "mirrord-config-derive" -version = "3.111.0" +version = "3.112.0" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -3862,7 +3862,7 @@ dependencies = [ [[package]] name = "mirrord-console" -version = "3.111.0" +version = "3.112.0" dependencies = [ "bincode", "drain", @@ -3878,7 +3878,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy" -version = "3.111.0" +version = "3.112.0" dependencies = [ "bytes", "futures", @@ -3902,7 +3902,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy-protocol" -version = "3.111.0" +version = "3.112.0" dependencies = [ "bincode", "mirrord-protocol", @@ -3912,7 +3912,7 @@ dependencies = [ [[package]] name = "mirrord-kube" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-codec", "base64 0.22.1", @@ -3939,7 +3939,7 @@ dependencies = [ [[package]] name = "mirrord-layer" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-codec", "anyhow", @@ -3996,7 +3996,7 @@ dependencies = [ [[package]] name = "mirrord-layer-macro" -version = "3.111.0" +version = "3.112.0" dependencies = [ "proc-macro2", "quote", @@ -4005,7 +4005,7 @@ dependencies = [ [[package]] name = "mirrord-macros" -version = "3.111.0" +version = "3.112.0" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -4015,7 +4015,7 @@ dependencies = [ [[package]] name = "mirrord-operator" -version = "3.111.0" +version = "3.112.0" dependencies = [ "actix-codec", "async-trait", @@ -4052,7 +4052,7 @@ dependencies = [ [[package]] name = "mirrord-progress" -version = "3.111.0" +version = "3.112.0" dependencies = [ "enum_dispatch", "indicatif", @@ -4086,7 +4086,7 @@ dependencies = [ [[package]] name = "mirrord-sip" -version = "3.111.0" +version = "3.112.0" dependencies = [ "apple-codesign", "memchr", @@ -4423,7 +4423,7 @@ dependencies = [ [[package]] name = "outgoing" -version = "3.111.0" +version = "3.112.0" [[package]] name = "overload" @@ -5462,21 +5462,21 @@ dependencies = [ [[package]] name = "rust-bypassed-unix-socket" -version = "3.111.0" +version = "3.112.0" dependencies = [ "tokio", ] [[package]] name = "rust-e2e-fileops" -version = "3.111.0" +version = "3.112.0" dependencies = [ "libc", ] [[package]] name = "rust-unix-socket-client" -version = "3.111.0" +version = "3.112.0" dependencies = [ "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index 84c217bdc73..2964979482d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ resolver = "2" # latest commits on rustls suppress certificate verification [workspace.package] -version = "3.111.0" +version = "3.112.0" edition = "2021" license = "MIT" readme = "README.md" diff --git a/changelog.d/+544-operator-statefulset-target.changed.md b/changelog.d/+544-operator-statefulset-target.changed.md deleted file mode 100644 index 1731c1ff5c2..00000000000 --- a/changelog.d/+544-operator-statefulset-target.changed.md +++ /dev/null @@ -1 +0,0 @@ -Allows targeting StatefulSet without the copy_target feature (still requires operator though). \ No newline at end of file diff --git a/changelog.d/+exec-hooks.fixed.md b/changelog.d/+exec-hooks.fixed.md deleted file mode 100644 index 65f54f728a1..00000000000 --- a/changelog.d/+exec-hooks.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fixed new exec hooks breaking execution of Flask apps. \ No newline at end of file diff --git a/changelog.d/+license-check.fixed.md b/changelog.d/+license-check.fixed.md deleted file mode 100644 index 2f201f0ce41..00000000000 --- a/changelog.d/+license-check.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fixed an issue where operator license was incorrectly recognized as expired when it was expiring later the same day. \ No newline at end of file diff --git a/changelog.d/+run-medschool.internal.md b/changelog.d/+run-medschool.internal.md deleted file mode 100644 index 0f16a9178e7..00000000000 --- a/changelog.d/+run-medschool.internal.md +++ /dev/null @@ -1 +0,0 @@ -Regenerated config docs. diff --git a/changelog.d/+tests-lint-in-ci.internal.md b/changelog.d/+tests-lint-in-ci.internal.md deleted file mode 100644 index 88503525806..00000000000 --- a/changelog.d/+tests-lint-in-ci.internal.md +++ /dev/null @@ -1 +0,0 @@ -Added `clippy` check on test code to the CI. \ No newline at end of file diff --git a/changelog.d/+warn-multiple-containers.added.md b/changelog.d/+warn-multiple-containers.added.md deleted file mode 100644 index 79fe460292f..00000000000 --- a/changelog.d/+warn-multiple-containers.added.md +++ /dev/null @@ -1 +0,0 @@ -Warning when mirrord automatically picked one of multiple containers on the target. diff --git a/changelog.d/2068.added.md b/changelog.d/2068.added.md deleted file mode 100644 index 02b7c3a4d10..00000000000 --- a/changelog.d/2068.added.md +++ /dev/null @@ -1,9 +0,0 @@ -Add fs mapping, under `feature.fs.mapping` now it's possible to specify regex match and replace for paths while running mirrord exec. - -Example: - -```toml -[feature.fs.mapping] -"/var/app/temp" = "/tmp" # Will replace all calls to read/write/scan for "/var/app/temp/sample.txt" to "/tmp/sample.txt" -"/var/app/.cache" = "/workspace/mirrord$0" # Will replace "/var/app/.cache/sample.txt" to "/workspace/mirrord/var/app/.cache/sample.txt" see [Regex::replace](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace) -``` diff --git a/changelog.d/721.fixed.md b/changelog.d/721.fixed.md deleted file mode 100644 index 5e19698c48c..00000000000 --- a/changelog.d/721.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Remove invalid schema doc mentioning podname as a valid pod target selector. \ No newline at end of file diff --git a/changelog.d/864.fixed.md b/changelog.d/864.fixed.md deleted file mode 100644 index 1c3b5bb4e29..00000000000 --- a/changelog.d/864.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Pass the list of UserSocket to child processes when exec is called through an env var MIRRORD_SHARED_SOCKETS. \ No newline at end of file