Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor keploy codebase (keploy#1684)
* chore: wip refactoring v2 codebase Signed-off-by: slayerjain <shubhamkjain@outlook.com> * chore: refactor v2 cmds by removing duplicate code Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: refactor the project structure and some interfaces Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: add arg names in intrumentation interface Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: add ctx to intrumentation.run method Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: update pending subcommand with new structs Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: add Hook interface to start hooks, proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add register for mock and config comds Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: rename module to server/v2 and add more interfaces Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: add record service impl Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add mock-record service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: modularize proxy package Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add testSetIds Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: implement app module to manage running apps Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: update record Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: implement hooks module in core Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> * chore: implement run service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * fix: add imports and test impl Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update record service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update record service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add test service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add mocktest and tools service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor proxy and http parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add err chan in test service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add treeDb to proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update integration interface Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update http parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update generic parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add enum for integration type Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * style: refactored serve package Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: update postgres parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: initial refactoring of mysql parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: initial refactoring of mongo parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update grpc parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update mongo parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update mysql parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * reafactor:platform related changes (keploy#1600) * refactor: mock initaliser and filtering (keploy#1615) * chore: update panic recovery function across codebase Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: cli integration Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: passed context in some functions Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: correct functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: integrate CLI Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chroe: remove unwanted files Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove deployment folder Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: changed fucntion name Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove cycle dep Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * fix: correct imports Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add start to replay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: clean tele Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: go routine to DBs Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * refactor:context cancell is create yaml (keploy#1618) * chore: go routine to DBs Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct fucntion names Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct testDB fucntions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove extra fields in report Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * refactor:using yaml defind write functions in report (keploy#1627) * chore: refactor hooks, app, proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * fix: mockdb functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * fix: db functions Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add ctx in yaml Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor apps,core Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix proxy port Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: refactor apps,core for userIP Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add installationId Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove compilation issues Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: correct cli Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix record command Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix bind bug Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update graphql server Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: record working Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: releasing eBPF resources Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: releasing eBPF resources-2 Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove extra keploy path Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove err log as parent is already doing it. Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct mocking Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add todo Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix reports Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove unnecessary go for saving mocks Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix app errors Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: service update Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct record service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct record service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct replay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add err grps Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove todos Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: create provider package Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove errs Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct error handling Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct error handling Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct error handling Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * fix: correct debug flag Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct test service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add delay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct report version Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove unused file Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * modify context cancellation function in exec.Cmd * chore: passed error channel to proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add context.Canceled Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct one-click install Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add extra fields in report Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * modified error logs for context cancelled errors Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: refactor logger.error() Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove ioutil Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add linter Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix custom naming Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update readMe Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: update error logs Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix import cycle Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: update error logs Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: synced some commits with main Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add record timer Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: return ctx error where needed Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: correct replay service Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor folder names * chore: remove closing of error channel again: Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: correct time Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: closing outgoing channel after context done Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: lint cli, config, util Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint services Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint platform Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint models Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint graph Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add error group in socket listeners of ebpf Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: lint intergrations Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint proxy Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: resolve lint Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add errorgroups in app, core Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: refactor test Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add delay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add errorgroupin proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add error group in generic parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add error group in grpc parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add error group in postgres parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: refactor replay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add break Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor unload Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor errors Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: refactor errors Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: linters Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: handle ctx done in socket listeners Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in dns servers Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in proxy and readconn util functions Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in generic parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove rand Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix ctx cancel in http parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in mongo parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in postgres parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add nil check for error group typecast & handle ctx cancel in http parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx cancel in mongo & mysql parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore:pass right context in parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore:lint Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add ctx impl in create yaml Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: correct platform Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add ctx in delay Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix closing of mock channel Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add go routine in tele Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add tele in record Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add nil check in channel in proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add errgrps Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove delays Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add telemetry Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: lint Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove print Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix ebpf resources unloading errors Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove print Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: remove print Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: fix log Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add info log Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: change file permissions and remove errCh in outgoing Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: uncomment java setupCA Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: add buffered channels Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add new err grps Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add new err grps Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * chore: add diff ctx cancel for hooks and proxy Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: ctx lint Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove print Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: fix ctx Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * filter mocks Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * after setting mocks Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * fix: sorting mocks Signed-off-by: charankamarapu <kamarapucharan@gmail.com> * fix: inital config mocks issue Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * fix: return in case of match error in mongo, postgres Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * fix: linter Signed-off-by: charankamarapu <kamarapucharan@gmail.com> --------- Signed-off-by: slayerjain <shubhamkjain@outlook.com> Signed-off-by: Shubham Jain <shubhamkjain@outlook.com> Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> Signed-off-by: charankamarapu <kamarapucharan@gmail.com> Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> Co-authored-by: gouravkrosx <gouravgreatkr@gmail.com> Co-authored-by: charankamarapu <kamarapucharan@gmail.com> Co-authored-by: Pranshu Srivastava <iampranshu24@gmail.com> Co-authored-by: Shivam Sourav Jha <60891544+shivamsouravjha@users.noreply.github.com>
- Loading branch information