apiops icon indicating copy to clipboard operation
apiops copied to clipboard

[BUG] API's are not getting deleted

Open mangeshparanjape opened this issue 9 months ago • 2 comments

Release version

v6.0.1.4

Describe the bug

I am trying to delete API's from repository by

  1. Deleting entire API folder.
  2. Commit to branch
  3. Create PR
  4. Merge to main branch.
  5. On merge triggers publisher pipeline
  6. Publisher pipeline is executing with success but API's are not deleted from APIM in Azure

Expected behavior

API's deleted from repository should get deleted when published using publisher pipeline

Actual behavior

API's are not deleted from APIM in Azure

Reproduction Steps

  1. Delete entire API folder from repository. e.g. if the repo structure is like this -> apis/test-api then delete entire test-api folder
  2. Commit changes to a branch
  3. Create PR
  4. Merge to main branch.
  5. On merge trigger publisher pipeline
  6. Publisher pipeline is executes with success but test-api is not deleted from APIM in Azure

mangeshparanjape avatar Mar 25 '25 02:03 mangeshparanjape

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

github-actions[bot] avatar Mar 25 '25 02:03 github-actions[bot]

Just a update on this issue. If I use "COMMIT_ID" configuration parameter with Publisher then the artifacts are getting deleted if the delete artifact push is in the last commit id. I didn't get a chance to debug this but my guess is there is some issue when comparing artifacts in artifactFiles.Contains(informationFile.ToFileInfo()). could be local cache issue. will update when I get a chance to debug.

mangeshparanjape avatar Mar 30 '25 20:03 mangeshparanjape