Skip to content

pdtm corrupts packages manager on tools removal#61

Merged
ehsandeep merged 29 commits intodevfrom
issue-52-tool-removal-corruption
Feb 17, 2023
Merged

pdtm corrupts packages manager on tools removal#61
ehsandeep merged 29 commits intodevfrom
issue-52-tool-removal-corruption

Conversation

@xm1k3
Copy link
Contributor

@xm1k3 xm1k3 commented Jan 30, 2023

  • fixed problems related to LookPath on remove, install and update function
  • fixed problem related to update function on checking the last version of a specific tool
  • added integration tests for install, remove and update function

@xm1k3 xm1k3 self-assigned this Jan 30, 2023
@xm1k3 xm1k3 added the Priority: High After critical issues are fixed, these should be dealt with before any further issues. label Jan 30, 2023
@xm1k3 xm1k3 linked an issue Jan 30, 2023 that may be closed by this pull request
If the tool exists, then it will be removed.
@xm1k3 xm1k3 requested review from Mzack9999 and ehsandeep January 31, 2023 08:15
@xm1k3 xm1k3 marked this pull request as ready for review January 31, 2023 08:15
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Minor changes
  • Evaluate if it's possible to write an integration test or add a step to GH action to ensure that no wrong binary gets deleted (packages manager corruption is a behavior that future potential changes should not re-introduce) - Probably this is blocked by #50

@xm1k3
Copy link
Contributor Author

xm1k3 commented Jan 31, 2023

implemented also unit test related to crud operation in crud_test.go

@xm1k3 xm1k3 requested a review from Mzack9999 February 1, 2023 11:08
@xm1k3 xm1k3 requested a review from Mzack9999 February 1, 2023 18:47
xm1k3 added 2 commits February 7, 2023 14:25
- more information related to github ratelimiting, AbuseRateLimitError to have the retry after info
- added var CommonExtensions
- GetExecutablePath refactoring, now returns also a bool to check if file exists
@xm1k3 xm1k3 requested a review from Mzack9999 February 7, 2023 22:08
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Optional style recommendations
  • Minor change in rate limit redundant check to avoid consuming github tokens

xm1k3 added 3 commits February 8, 2023 15:44
- github client moved from gh to install command
- inline syntax on install and update command
@xm1k3 xm1k3 requested a review from Mzack9999 February 8, 2023 14:55
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review update logic (regression #35)

@Mzack9999 Mzack9999 self-requested a review February 13, 2023 12:17
@ehsandeep ehsandeep merged commit fbe1f72 into dev Feb 17, 2023
@ehsandeep ehsandeep deleted the issue-52-tool-removal-corruption branch February 17, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: High After critical issues are fixed, these should be dealt with before any further issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pdtm corrupts packages manager on tools removal

3 participants