-
Notifications
You must be signed in to change notification settings - Fork 196
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
chore: Update sdk_gen script to lint and not do smoke tests #1431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks LGTM To Me
Go Tests 6 files 6 suites 4m 40s ⏱️ Results for commit 85f946c. |
85f946c
to
4791ef1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks LGTM To Me
'yarn fix', // Lint fix typescript | ||
'pipenv run black python/looker_sdk/sdk/api40/*.py', // Lint fix python | ||
'./kotlin/gradlew -p kotlin spotlessApply', // Lint fix kotlin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You gots to do what you gots to do. Would be nice for this to be a one liner to another script, but nice can come later.
@@ -214,6 +216,7 @@ const regen = async (release) => { | |||
const args = process.argv.slice(2); | |||
if (args.length >= 1) { | |||
await regen(args[0]); | |||
console.info('If generated SDKs fail CI, run "bin/smoke [language]" locally to verify and debug') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
yarn fix
to the script. For some reason, our pre-commit hook hangs on eslint. So if we first fix the eslint issues withyarn fix
this lets our pre-commit hook work.Additionally:
Confirmed it generates sdk with consistent styling. From last generation:
26 files changed, 519 insertions(+), 188 deletions(-)