Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Regressions due to branching between JavaScript and TypeScript files #2389

Merged
merged 11 commits into from
Apr 5, 2022

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Apr 4, 2022

Fixes:

More context for this PR:

I made a script in scripts/v3check.js for the purpose of comparing git history between JS files and their TS/TSX counterpart.

Basically it checks the creation date of a tsx file (e.g. filename.ts|tsx) and lists all the commits that happened since that date on the corresponding file (filename.js). It then generates a markdown string with a TODO list, that you can see in the following comment on this PR.

This allows us to detect changes that might have been done on one side in develop and might not have been included in the rebranding files (the typescript ones).

The script is quite rudimentary so it might not catch everything but it caught two of the regressions that we already identified before (regression on the "region setting" feature #2332 and regression on some fixes on the discreet mode #2365 ).

On top of that as you can see in the following list it helped me to catch some other regressions (Upon checking each commit in the list one by one, I then added for the 🚨 emoji whenever I found a regression) that happened because of the branching between js and ts files.

I'm pushing the script to the repo even though it will probably not be used anymore on LLM, but it might be useful for the pre-release of the LLD rebranding. Eventually we can delete it.

Type

Regression fixes

Context

v3 pre-release

Parts of the app affected / Test plan

@ofreyssinet-ledger ofreyssinet-ledger requested a review from a team as a code owner April 4, 2022 14:40
@ofreyssinet-ledger ofreyssinet-ledger changed the title Add script listing potential regressions due to branching between JS and TS files Potential regressions due to branching between JS and TS files Apr 4, 2022
@ofreyssinet-ledger ofreyssinet-ledger marked this pull request as draft April 4, 2022 14:41
@ofreyssinet-ledger
Copy link
Contributor Author

ofreyssinet-ledger commented Apr 4, 2022

@ofreyssinet-ledger ofreyssinet-ledger changed the title Potential regressions due to branching between JS and TS files Potential regressions due to branching between JavaScript and TypeScript files Apr 5, 2022
@ofreyssinet-ledger ofreyssinet-ledger self-assigned this Apr 5, 2022
@ofreyssinet-ledger ofreyssinet-ledger marked this pull request as ready for review April 5, 2022 13:09
@ofreyssinet-ledger ofreyssinet-ledger merged commit 3842729 into release/v3.0.x Apr 5, 2022
@ofreyssinet-ledger ofreyssinet-ledger deleted the bugfix/ts-regression-checks branch April 5, 2022 13:55
@ofreyssinet-ledger ofreyssinet-ledger changed the title Potential regressions due to branching between JavaScript and TypeScript files Regressions due to branching between JavaScript and TypeScript files Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants