Skip to content

Migrate to ts #207

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

Merged
merged 58 commits into from
Apr 21, 2023
Merged

Migrate to ts #207

merged 58 commits into from
Apr 21, 2023

Conversation

mhan83
Copy link
Contributor

@mhan83 mhan83 commented Apr 18, 2023

Convert to typescript.

Defined types for the runner configuration object, but derived the definitions from the implementation instead of from the definitions from saucectl. I went this route for a couple of reasons:

  1. The current config definitions in saucectl is only the most current snapshot, the runner needs to be backwards compatible with old runner config schemas so adhering only to the current def could break backwards compatibility.
  2. I want to change as little implementation as possible to reduce the size of the change set. I didn't want to introduce new bugs during the migration.
  3. There are lots of discrepancies between what's expected by the runner and what's actually delivered by the config from saucectl. Figuring out what's "correct" is a task probably best suited for another PR, imo.

@mhan83 mhan83 marked this pull request as ready for review April 18, 2023 22:41
@mhan83 mhan83 requested a review from a team as a code owner April 18, 2023 22:41
mhan83 added 10 commits April 19, 2023 15:09
Non-exhaustive typing for runner config. Types derived solely from
implementation and not from config def in saucectl. The types as-is are
not guarnateed to be correct.
Again, types derived from current implementation and not from types
definied in saucectl.
Losing easy git blame usage with the conversion so make it a bit more
sensical without easy history access.
mhan83 and others added 2 commits April 21, 2023 15:35
Call String as function to do the coercion.

Co-authored-by: Alex Plischke <[email protected]>
Keep side effects to a minimum
@mhan83 mhan83 merged commit 677ec46 into main Apr 21, 2023
@mhan83 mhan83 deleted the DEVX-2240 branch April 21, 2023 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants