Skip to content
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

[fix]: update keploy even it has the latest version #1609

Conversation

AhmedLotfy02
Copy link
Contributor

Related Issue

  • Keploy update it's version even it has the latest one

Closes: #1608

Describe the changes you've made

  • Just remove "v" from the release tag to be the same format of what we get from binary, example v2.x.x --> 2.x.x.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Please let us know if any test cases are added

Please describe the tests(if any). Provide instructions how its affecting the coverage.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

A clear and concise description of it.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Screenshots (if any)

Original Updated
original screenshot updated screenshot

shivamsouravjha and others added 30 commits September 14, 2023 18:32
* refactor: replacing fatal with logger

* refactor:logs for certificate folder
* docs: move the binary section to the top

* docs: remove new line
* feat: adding timeout to handle http timeout

* refactor:response in case of error for handleTLSconnection

* feat: adding apitimeout flag for test and serve cmd

* updating flag type

Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in>

---------

Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in>
* feat: add commands for recording and testing mocks

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: change bootproxies to bootproxy

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: remove path from hooks and attach to yaml

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: fix codeQL error

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add loadedhook in bootproxy

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: validate user provided path

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: resolve codeQL error

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: remove config.yaml

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
…eploy#819)

* fix: last testcase was not captured resulted in failing testrun

Signed-off-by: sarthak160 <rocksarthak45@gmail.com>

* refactor: cleanup some code

Signed-off-by: sarthak160 <rocksarthak45@gmail.com>

* refactor: changeAuthToMd5 method

Signed-off-by: sarthak160 <rocksarthak45@gmail.com>

* refactor: change print statmnt to logs

Signed-off-by: sarthak160 <rocksarthak45@gmail.com>

---------

Signed-off-by: sarthak160 <rocksarthak45@gmail.com>
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* fix: adds a check before comparing mongoRequests

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

* fix: reduces the allocated memory in tracker for ingress

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
…ploy#845)

* fix: updates the generated file permissions

the generated files should be accessible by all users. Since keploy runs as sudo, the generated files are restricted for normal users. This changes updates the permisions using chmod shell cmd

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* feat: added for loop to the http parser to support connection pooling

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* fix: updates the exit logs to stop the cli cmd

stops the existing connection of proxy with client when the proxy server stops.

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* fix: adds a check before comparing mongoRequests

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

* fix: updates the deadline for the read in test

the read deadline for the client connection is reduced to 10ms in test mode for generic/postgres

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* fix: updates the message size of sent/recieve buffer

the user application is stopped during panic. And the message size is updated to maximum possible size for ingress calls

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* feat: add support for linux mint in adding CAs

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: fixed linux mint issues

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* style: removed uneccesary println lines

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: added default paths for debian and red hat distros

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* style: removed unnecessary files

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* style: improved logging

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* feat: add support for connectionkeep-alive

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* doc: add doc for IsComplete()

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* chore: add amd64 binary files

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* style: refactor variable names

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

---------

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* fix: updated the ca store update mechanism to be iterative

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* style: removed unnecessary changes

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* update:arm file

* delete: amd file

* update:amd file
Signed-off-by: Neha Gupta <gneha21@yahoo.in>
Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
* fix: log errors and stop user app

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: stop userapp on error

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: change error logs to warn

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: resolve conflicts

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in>
* fix: Run application as user not sudo

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add if check for sudo_user

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* doc: updated command examples

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
* fix: stop keploy while test

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: stop keploy immediately on interrupt

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
* stop and remove docker container

Signed-off-by: 404fixer <govindtomar94@gmail.com>
---------

Signed-off-by: 404fixer <govindtomar94@gmail.com>
* feat: added hacktoberfest guide

Signed-off-by: Animesh <kurosakiichigo.songoku@gmail.com>

* feat: added hacktoberfest guide

Signed-off-by: Animesh <kurosakiichigo.songoku@gmail.com>

* feat: added vaunt badges

Signed-off-by: Animesh <kurosakiichigo.songoku@gmail.com>

* feat: added vaunt badges

Signed-off-by: Animesh <kurosakiichigo.songoku@gmail.com>

---------

Signed-off-by: Animesh <kurosakiichigo.songoku@gmail.com>
Co-authored-by: Neha Gupta <gneha21@yahoo.in>
Signed-off-by: Jeff Simpson <jeff1010322@gmail.com>
re-Tick and others added 22 commits February 8, 2024 15:06
Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
* added generateTestReport flag

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* error fixed

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* error fixed

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* delete testReports in serve command

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* error fixed

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* fixed issues

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* changes updated

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* changes updated

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

* removed extra logs

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>

---------

Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
…ploy#1476)

* fix: removed unnecessary sudo commands and added merged colima and docker commands

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary changes

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed option for colima altogether

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: sudo problem

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* removed comment from rm

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: made changes according to the comments

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* fix: fields not being set in test report

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary fields

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
* fix: handling of dns queries coming over tcp

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* add amd eBPF compiled binaries

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

---------

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
keploy#1519)

* Added a timer goroutine to run for a specific duration and upon expiration sends an os.Interrupt signal which shuts down the recorder and exits the program

Signed-off-by: heyyakash <akashsharma2002@gmail.com>

* Changed the description and the variable name of timer command

Signed-off-by: heyyakash <akashsharma2002@gmail.com>

* Updated shorthand and stopping message

Signed-off-by: heyyakash <akashsharma2002@gmail.com>

---------

Signed-off-by: heyyakash <akashsharma2002@gmail.com>
Co-authored-by: Pranshu Srivastava <37413698+PranshuSrivastava@users.noreply.github.com>
…oy#1512)

* refactor: diff viewer of response

* refactor:error check and exact check

* refactor:creating map for copy

* refactor:chreck for text

* refactor:json validate

* refactor:different type response viewer

* refactor:check for struct

---------

Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
* feat: add golint

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* fix: updated golint

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* fix: removed useless comments

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* feat: added config file for golangci

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* feat: added concurrency in golangci

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* feat: golint only shows new issues if its a PR

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* fix: checking working of golint pipeline

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* feat: golint only checks new issues

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

---------

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Co-authored-by: Shivam Sourav Jha <60891544+shivamsouravjha@users.noreply.github.com>
Co-authored-by: Pranshu Srivastava <37413698+PranshuSrivastava@users.noreply.github.com>
Co-authored-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
* fix: add netwoek in linux

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add network in docker]

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add sudo for mac

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add darwin

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: remove && condition

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
…verage (keploy#1604)

* fix: adds stopTest graph api to unload the ebpf hooks from kernel

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

* fix(serve): runs the proxy server after loading ebpf hooks

since the keploy pid is extracted from the user space progrom pid and passed into the ebpf map from
the c code itself when sys-bind is called. And sys-bind is called when a port allocation occurs so,
need to start proxy server when the fetchTestsets is fired to load ebpf hooks correctly into the
kernel.

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

* style: removes commented code

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
Signed-off-by: AhmedLotfy02 <ahmadlotfygamersfield@gmail.com>
@charankamarapu
Copy link
Member

Hi @AhmedLotfy02 we refactored the main branch . But the updated feature has been not completely tested with the refactoring . We will working on it asap once that is done we can proceed with this PR.

@AhmedLotfy02
Copy link
Contributor Author

@charankamarapu Hi, it's fixed in the refactored v2 by adding "v" prefix to version as in the screenshot provided

DeepinScreenshot_select-area_٢٠٢٤٠٣١٥٠٢٠٢١٩

@shivamsouravjha
Copy link
Contributor

shivamsouravjha commented Apr 29, 2024

hey @AhmedLotfy02 can you please update the PR to fix the conflict error

@AhmedLotfy02
Copy link
Contributor Author

@shivamsouravjha I think we could close this PR as the desired output is done on the latest version.
image

@shivamsouravjha
Copy link
Contributor

Closing this as error is already solved

@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
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.

[bug]: Keploy update command updates even on latest version