EIP-Bot icon indicating copy to clipboard operation
EIP-Bot copied to clipboard

Cannot delete files

Open Pandapip1 opened this issue 3 years ago • 17 comments

Deleting files ~~in the assets folder~~ anywhere causes EIP-bot to throw with a "not found" message, resulting in the PR failing to merge.

Pandapip1 avatar Apr 18 '22 14:04 Pandapip1

Any particular reason why has been this "reopened" ?

JEAlfonsoP avatar Sep 03 '22 12:09 JEAlfonsoP

The fix apparently didn't work.

Pandapip1 avatar Sep 03 '22 21:09 Pandapip1

That fix as you mentioned, was addressed in EIPW ? (Question)

JEAlfonsoP avatar Sep 04 '22 11:09 JEAlfonsoP

No, it wasn't.

Pandapip1 avatar Sep 05 '22 11:09 Pandapip1

Deleting EIP asset file == modifying EIP asset files ? (Question), if this is the case then it would be covered with Issue #95.

JEAlfonsoP avatar Sep 05 '22 18:09 JEAlfonsoP

No, this is different. If any file is deleted, EIP-bot throws

Pandapip1 avatar Sep 05 '22 23:09 Pandapip1

is anyone working on it ?

JEAlfonsoP avatar Sep 06 '22 00:09 JEAlfonsoP

No, there is not.

Pandapip1 avatar Sep 06 '22 01:09 Pandapip1

I will take a look on it.

JEAlfonsoP avatar Sep 06 '22 20:09 JEAlfonsoP

I'm not looking at this one.

SamWilsn avatar Sep 07 '22 14:09 SamWilsn

Hi. I did several tests and PRs in the testing environment for this.

  1. There is no bug with any of the bots: EIP-Bot and EIPW. The test: https://github.com/JEAlfonsoP/EIPs/actions/runs/3093930099/jobs/5006818557 EIPW fails because the file pretending to be merged into the EIP repo does not follow EIP-1 rules. e.g: Error: error: first line must be --- exactly --> EIPS/eip-5255.md | 1 | Delete EIP-5000 |

This is the first line for: https://github.com/ethereum/EIPs/pull/5255/commits/bdaf424ed9c178d462cc4c3ba71c3b6812bb2b89

  1. Try to merge and delete an EIP: (Please I just try to delete last EIP-merged) https://github.com/JEAlfonsoP/EIPs/pull/16 Actions: https://github.com/JEAlfonsoP/EIPs/actions/runs/3098269137 (No failure for any BOT). There is a failure from CI: https://github.com/JEAlfonsoP/EIPs/actions/runs/3098269137/jobs/5015970668 (CodeSpell due to the fact that this empty case is not considered).

Sam, may be the messages from EIPW could be a more explicative (a suggestion). PandaPip1, I presume that this empty check might be included in CI. General Observation: Any file to be merged must follows EIP1 rules.

Beside this I think that the case for deleting any file from the EIPs repo is solved.

Let me know if you need something else or if it's Ok so this issue could be closed.

JEAlfonsoP avatar Sep 21 '22 13:09 JEAlfonsoP

Your particular test didn't work because of an API rate limit: https://github.com/JEAlfonsoP/EIPs/actions/runs/3098245342/jobs/5015914203

Pandapip1 avatar Sep 21 '22 14:09 Pandapip1

Your particular test didn't work because of an API rate limit: https://github.com/JEAlfonsoP/EIPs/actions/runs/3098245342/jobs/5015914203

? What is this Panda ? I do not understand it. I do not find that error during testing.

But I see from your test that: 'x-ratelimit-used': '60', is working.

JEAlfonsoP avatar Sep 21 '22 14:09 JEAlfonsoP

I am stating, as a fact, that deleting any file incorrectly throws a "not found" error due to the github API (correctly) giving a 404 error when the "updated" file is fetched. This is a bug, and is separate from any other CI elements correctly failing.

Pandapip1 avatar Sep 21 '22 15:09 Pandapip1

You need to consider the fact that deleting an EIP's repo file does not activate EIP-Bot. Solving #95 should fixes what you said. However CI elements failing we agreed.

As I mentioned two weeks ago, If you or Sam are working in any other Bot to fix this issue or 95 please re-reconfirm so I do not test, code and PR any of it as I just did for this one.

JEAlfonsoP avatar Sep 21 '22 15:09 JEAlfonsoP

You need to consider the fact that deleting an EIP's repo file does not activate EIP-Bot.

Yes, it does.

Pandapip1 avatar Sep 21 '22 22:09 Pandapip1

You need to consider the fact that deleting an EIP's repo file does not activate EIP-Bot.

Yes, it does.

Interesting. If you have a test case with the actual ./workflow please share it if you like, so I can take a look on it. Regardless, please, I ask you again that you advice if: a.- You are working on this issue or any other one from this repo. So I avoid time consumption on it.

Thank you !

JEAlfonsoP avatar Sep 22 '22 00:09 JEAlfonsoP