RFC: bundle scoping #991
base: main
Are you sure you want to change the base?
RFC: bundle scoping #991
Conversation
|
||
|
||
|
||
## Stage 2: private containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I love the idea of private containers. Thoughts on having private tasks too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered it, but couldn't think of any concrete use cases for private tasks. Is there a use case you have in mind that would benefit from private tasks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use case I was thinking of was where you might have prerequisites tasks for your own task.
The exact use case is:
- Publish DB Task
- Start sql container + run command to deploy latest schema (binary) to the sql container - Run DB Task
- PreReq = Publish DB Task
- Start sql container + run command "Press any key to continue command"
In this example I don't really want to expose the first task. Since the functionality this bundle provides is to take a binary and run it on a DB container.
(not sure if this can be done without multiple tasks)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, makes sense. I think that would definitely fall into a "stage 3" in terms of implementation priority.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
To be completely honest it's not something that I "need". Just a nice to have so feel free to deprioritize it 🙂
This looks like cleaner syntax for bundles and additional features / use cases come along for the ride. |
Codecov Report
@@ Coverage Diff @@
## main #991 +/- ##
=========================================
Coverage 83.86% 83.86%
Complexity 2686 2686
=========================================
Files 353 353
Lines 11773 11773
Branches 1412 1412
=========================================
Hits 9874 9874
Misses 1598 1598
Partials 301 301
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. It will automatically be closed if no further activity occurs in the next seven days to enable maintainers to focus on the most important issues. |
📢 Update on implementing this RFC I realise there's been radio silence on this RFC since I posted it and so I wanted to give an update on what's going on. The short version is that while I'm very, very keen to implement this, I'm currently prioritising some other work to improve the experience of working on Batect itself. Batect has grown quite a bit since it first began a few years ago, and unfortunately that is starting to show - builds take longer to run than I'd like (both locally and on CI), flaky tests are going unfixed and I'm finding more and more of my precious time diverted away to fixing things that are invisible to most users, like edge cases in the Docker client. All of these things make it less pleasant to work on Batect, and make it much harder for others to contribute as well. I have two major things on my backlog to address these issues:
Once I've finished addressing these issues, I will come back to this feature as a priority. I'm most likely to tackle the new expression syntax (#990) first, then bundle scoping. |
📢 Update Apologies for the continuing radio silence on this RFC. Replacing the Docker client in Batect has taken much longer than I planned / hoped / expected, however, I can see the light at the end of the tunnel. As soon as this is complete, I'll start work on #990, then pick up the features described in this RFC. |
I wasn't vocal enough previously. I'm a 👍 on this. |
This is a request for comment and feedback on the idea in
proposal.md
.The RFC process is intended to allow anyone with an interest in Batect to get involved and help shape it to suit their needs, so please don't be shy! Any comments, suggestions, questions or constructive criticism are more than welcome.
Please comment directly on the file itself or add general comments in this PR.