Skip to content

Commit

Permalink
Faster CI: don't run clippy, don't test twilio (#545)
Browse files Browse the repository at this point in the history
This reduces CI time from 29 minutes to 10 minutes, big win.

We'll still run clippy --fix when generating the kittycad crate.
  • Loading branch information
adamchalmers committed Sep 17, 2024
1 parent 1859d9a commit 6a5b977
Show file tree
Hide file tree
Showing 21 changed files with 159 additions and 32,463 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ kittycad: target/debug/openapitor
--spec-url "https://api.zoo.dev" \
--base-url "https://api.zoo.dev" \
--request-timeout-seconds 600 \
--clippy-fix \
--repo-name "KittyCAD/kittycad.rs" $(EXTRA_ARGS)
mv -f $(CURDIR)/kittycad/kittycad.rs.patch.json $(CURDIR)

Expand Down
30 changes: 15 additions & 15 deletions kittycad/src/api_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl ApiCalls {
) -> Result<Vec<crate::types::ApiCallQueryGroup>, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "api-call-metrics"),
format!("{}/{}", self.client.base_url, "api-call-metrics"),
);
req = req.bearer_auth(&self.client.token);
let query_params = vec![("group_by", format!("{}", group_by))];
Expand Down Expand Up @@ -54,7 +54,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPriceResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "api-calls"),
format!("{}/{}", self.client.base_url, "api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -117,7 +117,7 @@ impl ApiCalls {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "api-calls"),
format!("{}/{}", self.client.base_url, "api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut request = req.build()?;
Expand Down Expand Up @@ -170,7 +170,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPrice, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"api-calls/{id}".replace("{id}", &format!("{}", id))
Expand Down Expand Up @@ -207,7 +207,7 @@ impl ApiCalls {
) -> Result<crate::types::AsyncApiCallResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "async/operations"),
format!("{}/{}", self.client.base_url, "async/operations"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -274,7 +274,7 @@ impl ApiCalls {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "async/operations"),
format!("{}/{}", self.client.base_url, "async/operations"),
);
req = req.bearer_auth(&self.client.token);
let mut request = req.build()?;
Expand Down Expand Up @@ -338,7 +338,7 @@ impl ApiCalls {
) -> Result<crate::types::AsyncApiCallOutput, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"async/operations/{id}".replace("{id}", &format!("{}", id))
Expand Down Expand Up @@ -374,7 +374,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPriceResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "org/api-calls"),
format!("{}/{}", self.client.base_url, "org/api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -437,7 +437,7 @@ impl ApiCalls {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "org/api-calls"),
format!("{}/{}", self.client.base_url, "org/api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut request = req.build()?;
Expand Down Expand Up @@ -490,7 +490,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPrice, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"org/api-calls/{id}".replace("{id}", &format!("{}", id))
Expand Down Expand Up @@ -526,7 +526,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPriceResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "user/api-calls"),
format!("{}/{}", self.client.base_url, "user/api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -589,7 +589,7 @@ impl ApiCalls {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "user/api-calls"),
format!("{}/{}", self.client.base_url, "user/api-calls"),
);
req = req.bearer_auth(&self.client.token);
let mut request = req.build()?;
Expand Down Expand Up @@ -650,7 +650,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPrice, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"user/api-calls/{id}".replace("{id}", &format!("{}", id))
Expand Down Expand Up @@ -687,7 +687,7 @@ impl ApiCalls {
) -> Result<crate::types::ApiCallWithPriceResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"users/{id}/api-calls".replace("{id}", id)
Expand Down Expand Up @@ -755,7 +755,7 @@ impl ApiCalls {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"users/{id}/api-calls".replace("{id}", id)
Expand Down
10 changes: 5 additions & 5 deletions kittycad/src/api_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl ApiTokens {
) -> Result<crate::types::ApiTokenResultsPage, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "user/api-tokens"),
format!("{}/{}", self.client.base_url, "user/api-tokens"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -84,7 +84,7 @@ impl ApiTokens {
async {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "user/api-tokens"),
format!("{}/{}", self.client.base_url, "user/api-tokens"),
);
req = req.bearer_auth(&self.client.token);
let mut request = req.build()?;
Expand Down Expand Up @@ -144,7 +144,7 @@ impl ApiTokens {
) -> Result<crate::types::ApiToken, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "user/api-tokens"),
format!("{}/{}", self.client.base_url, "user/api-tokens"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![];
Expand Down Expand Up @@ -187,7 +187,7 @@ impl ApiTokens {
) -> Result<crate::types::ApiToken, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"user/api-tokens/{token}".replace("{token}", token)
Expand Down Expand Up @@ -228,7 +228,7 @@ impl ApiTokens {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::DELETE,
&format!(
format!(
"{}/{}",
self.client.base_url,
"user/api-tokens/{token}".replace("{token}", token)
Expand Down
6 changes: 3 additions & 3 deletions kittycad/src/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Apps {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "apps/github/callback"),
format!("{}/{}", self.client.base_url, "apps/github/callback"),
);
req = req.bearer_auth(&self.client.token);
req = req.json(body);
Expand Down Expand Up @@ -58,7 +58,7 @@ impl Apps {
) -> Result<crate::types::AppClientInfo, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "apps/github/consent"),
format!("{}/{}", self.client.base_url, "apps/github/consent"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down Expand Up @@ -88,7 +88,7 @@ impl Apps {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "apps/github/webhook"),
format!("{}/{}", self.client.base_url, "apps/github/webhook"),
);
req = req.bearer_auth(&self.client.token);
req = req.body(body.clone());
Expand Down
2 changes: 1 addition & 1 deletion kittycad/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Executor {
) -> Result<crate::types::CodeOutput, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!(
format!(
"{}/{}",
self.client.base_url,
"file/execute/{lang}".replace("{lang}", &format!("{}", lang))
Expand Down
12 changes: 6 additions & 6 deletions kittycad/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl File {
) -> Result<crate::types::FileCenterOfMass, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "file/center-of-mass"),
format!("{}/{}", self.client.base_url, "file/center-of-mass"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![("src_format", format!("{}", src_format))];
Expand Down Expand Up @@ -78,7 +78,7 @@ impl File {
) -> Result<crate::types::FileConversion, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!(
format!(
"{}/{}",
self.client.base_url,
"file/conversion/{src_format}/{output_format}"
Expand Down Expand Up @@ -141,7 +141,7 @@ impl File {
) -> Result<crate::types::FileDensity, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "file/density"),
format!("{}/{}", self.client.base_url, "file/density"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![
Expand Down Expand Up @@ -189,7 +189,7 @@ impl File {
) -> Result<crate::types::FileMass, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "file/mass"),
format!("{}/{}", self.client.base_url, "file/mass"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![
Expand Down Expand Up @@ -252,7 +252,7 @@ impl File {
) -> Result<crate::types::FileSurfaceArea, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "file/surface-area"),
format!("{}/{}", self.client.base_url, "file/surface-area"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![("src_format", format!("{}", src_format))];
Expand Down Expand Up @@ -308,7 +308,7 @@ impl File {
) -> Result<crate::types::FileVolume, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "file/volume"),
format!("{}/{}", self.client.base_url, "file/volume"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![("src_format", format!("{}", src_format))];
Expand Down
10 changes: 5 additions & 5 deletions kittycad/src/hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Hidden {
) -> Result<crate::types::VerificationTokenResponse, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "auth/email"),
format!("{}/{}", self.client.base_url, "auth/email"),
);
req = req.bearer_auth(&self.client.token);
req = req.json(body);
Expand Down Expand Up @@ -53,7 +53,7 @@ impl Hidden {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "auth/email/callback"),
format!("{}/{}", self.client.base_url, "auth/email/callback"),
);
req = req.bearer_auth(&self.client.token);
let mut query_params = vec![
Expand Down Expand Up @@ -87,7 +87,7 @@ impl Hidden {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"auth/saml/provider/{provider_id}/login"
Expand Down Expand Up @@ -129,7 +129,7 @@ impl Hidden {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!(
format!(
"{}/{}",
self.client.base_url,
"auth/saml/provider/{provider_id}/login"
Expand Down Expand Up @@ -159,7 +159,7 @@ impl Hidden {
pub async fn logout<'a>(&'a self) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "logout"),
format!("{}/{}", self.client.base_url, "logout"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down
16 changes: 8 additions & 8 deletions kittycad/src/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Meta {
pub async fn get_schema<'a>(&'a self) -> Result<serde_json::Value, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, ""),
format!("{}/{}", self.client.base_url, ""),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down Expand Up @@ -54,7 +54,7 @@ impl Meta {
) -> Result<crate::types::Metadata, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "_meta/info"),
format!("{}/{}", self.client.base_url, "_meta/info"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Meta {
) -> Result<crate::types::IpAddrInfo, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "_meta/ipinfo"),
format!("{}/{}", self.client.base_url, "_meta/ipinfo"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down Expand Up @@ -125,7 +125,7 @@ impl Meta {
) -> Result<Vec<String>, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "debug/uploads"),
format!("{}/{}", self.client.base_url, "debug/uploads"),
);
req = req.bearer_auth(&self.client.token);
use std::convert::TryInto;
Expand Down Expand Up @@ -163,7 +163,7 @@ impl Meta {
) -> Result<(), crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::POST,
&format!("{}/{}", self.client.base_url, "events"),
format!("{}/{}", self.client.base_url, "events"),
);
req = req.bearer_auth(&self.client.token);
use std::convert::TryInto;
Expand Down Expand Up @@ -207,7 +207,7 @@ impl Meta {
) -> Result<crate::types::ApiToken, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!(
format!(
"{}/{}",
self.client.base_url,
"internal/discord/api-token/{discord_id}".replace("{discord_id}", discord_id)
Expand Down Expand Up @@ -241,7 +241,7 @@ impl Meta {
pub async fn ping<'a>(&'a self) -> Result<crate::types::Pong, crate::types::error::Error> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "ping"),
format!("{}/{}", self.client.base_url, "ping"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down Expand Up @@ -273,7 +273,7 @@ impl Meta {
> {
let mut req = self.client.client.request(
http::Method::GET,
&format!("{}/{}", self.client.base_url, "pricing/subscriptions"),
format!("{}/{}", self.client.base_url, "pricing/subscriptions"),
);
req = req.bearer_auth(&self.client.token);
let resp = req.send().await?;
Expand Down
Loading

0 comments on commit 6a5b977

Please sign in to comment.