Closed D1M1TR10S closed 1 year ago
Since we haven't been able to get the issue parser action to work, I've gone ahead and created an MVP parsing python script (it needs a lot of work and needs to be cleaned up) to run in a reusable Actions workflow. I haven't tested the actions portion of it yet--just the script part.
@Lehcar when I'm back from traveling, I can bundle that into a Docker Action for ya and it can be open source for all!
Native JS Action built and tested! https://github.com/GrantBirki/issue-template-parser
The following PR I am working on is now significantly less blocked 🎉
PR linked above should be ready to ship 🚢
Hi @GrantBirki and @Lehcar - I have already merged the PR.
xref: #473 (comment)
👋 Dug into this a bit with @GrantBirki. We split on "\\r\\n\\r\\n"
or "\r\n\r\n"
, but it looks like the issue didn't initially have the \r
(action run). The current theory is that the web editor adds the \r
carriage return when you make edits to the issue body.
I think we may be able to just split on the first \n
, but this needs to be tested 😅 I can poke at this later this week.
xref: #473 (comment)
👋 Dug into this a bit with @GrantBirki. We split on
"\\r\\n\\r\\n"
or"\r\n\r\n"
, but it looks like the issue didn't initially have the\r
(action run). The current theory is that the web editor adds the\r
carriage return when you make edits to the issue body.I think we may be able to just split on the first
\n
, but this needs to be tested 😅 I can poke at this later this week.
Alright, I think I fixed it, but this still needs to be tested in the ersilia repo: https://github.com/ersilia-os/ersilia/pull/474
The issue was that the issue body was being passed as '"### Model Name\nmy model\n"'
(it was getting wrapped in single quotes, so the parser, splitting on ###
, was returning ["\"", " Model Name\\nmy model\\n"]
Hey @GrantBirki and @Lehcar.
Is it safe to say this epic is done and close the issue as complete? If not, what remaining work is there? Thanks 🙂
Yep! I would say so. We have additional items that we want to add for enhancements but the core work here is done
Summary ⭐️
Architect and build a new model submissions flow for a more efficient and scalable submission process.
Objective 🎯
https://github.com/ersilia-os needs a streamlined way for users to submit model requests and when approved, have a shiny new repository made for their model based on the eos-template repo.
Supporting Details ✏️
Workflow
This section will walk through the purposed workflow
ersilia-os/<answer>
/approve
command on the issue. This command is only available to org members and official "approves" the request to create the new model submission. Code will be configured in theersilia-os/ersilia
repository to run a slash command dispatch Action when an org member comments/approve
. This Action will do the following:Dependencies 🖇
Actions 1 & 2 depend on this being complete.
Team 🏀
DRI: @GrantBirki Backup: @Lehcar
Timeline 🗓
Documentation 📓