kube: k8s-openapi memory consumption blocks CI
Did a full cargo test --all-features
after having bumped the k8s-openapi
dependency and memory use is almost 8GB with parallelism. Looks like it takes >4GB just compiling the dependency itself. This blocks CircleCI from building it (on the free account), and travis just seems to time out. Need a better CI solution…
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (9 by maintainers)
Commits related to this issue
- ci limits - #62 — committed to kube-rs/kube by clux 5 years ago
- more circle tests for #62 — committed to kube-rs/kube by clux 5 years ago
- try azure pipelines - for #62 — committed to kube-rs/kube by clux 5 years ago
- azure pipelines - for #62 — committed to kube-rs/kube by clux 5 years ago
- azure links - #62 — committed to kube-rs/kube by clux 5 years ago
- try without incremental compilation - #62 — committed to kube-rs/kube by clux 5 years ago
- possibly lighter k8s-openapi dep for circleci for #62 — committed to kube-rs/kube by clux 5 years ago
- try openapi feature branch - for #62 — committed to kube-rs/kube by clux 5 years ago
- should be able to run all tests on circle now - #62 — committed to kube-rs/kube by clux 5 years ago
- Add default-enabled feature on all API operations. Crates that don't need the operations can disable the feature to save on compile time and resources. Ref https://github.com/clux/kube-rs/issues/62 — committed to Arnavion/k8s-openapi by deleted user 5 years ago
Try
k8s-openapi = { git = "https://github.com/Arnavion/k8s-openapi", branch = "feature-api", default-features = false }
. I see the RSS max out at ~1.4 GiB when buildingk8s-openapi-tests
. If it works for you I’ll see about releasing it as v0.5.1