-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task concatenation #394
Comments
First of, I need to clear up that, unlike azure pipelines or other software, Gaucho is intended to be used manually, not automatically, so maybe consider using scripting or other tools for automatic processes and trigger those with gaucho. With that said, even if Gaucho is not intended for automation, I see the point on adding some light helpers for task automation (like the already implemented scheduler). Having a full-blown pipeline configuration is a bit out of scope, but we may be able to add some simple scheduling to execute a task after another. I see a few of ways of doing this while keeping a somewhat small scope: Using command-lineCurrently, gaucho is a UI only app, but it may be quite versatile to allow using it through commands, (e.g. The main difficulty here is that nothing is in place for running gaucho from commandline, plus some refactor in how the app is running (a full app instance every time is opened) may be required Run task after optionAnother option is to have a new setting in tasks so we can define another task to be run after. As before, some refactor may be required to be able to select a task and some complexity may arise from this (e.g. what happens if a task is deleted, how to export a suite etc...) Run suite secuantiallyFInally, I can think of a button (like the current "Run suite") that runs all the tasks in the suite one after the other. This is by far the easiest alternative, but it is quite limited, as all the tasks need to be defined in a suite and you could define more complex pipelines. What do you think of these approaches? Will solve your problem? |
Thanks @angrykoala. My thoughts on your suggestions:
Now, my idea is something of a mix of the second and third option, but it might be more complex: I have no idea how viable this is, so take my suggestion as someone that just found Gaucho and is excited about its uses 🙂 |
Hi @VictorGrycuk Well, I've been planning some refactor on Gaucho for some time now, I cannot say exactly how much work would be, but in any case none of the alternatives mentioned go through a full rewrite or anything, it is simply that some of the core behavior needs to be changed (not the first time anyway) Regarding your proposal: I would need to tinker a bit with the code to know how costly would be to implement these options, If you can think on other alternatives feel free to tell me |
Thanks! Even the simplest option beats having to type I would love to you give you a hand with this, but I am not very friendly with JS. However, I will take a look at the code to see if I can learn something. |
@VictorGrycuk I know this is not the point of your comment, but remember that you can create a single task in gaucho along with && (may depend if you are using windows) so all your concatenated tasks are in a single task, not ideal, but lazy enough 😆 Sure, not the most elegant code in the block, but happy to get any help if you can |
Original by @VictorGrycuk
would it be possible to add an option to chain the tasks? If the first tasks finishes OK, the second one will be executed, and if that one finishes OK, the second one will be executed.
Both of these requests would make it similar to Microsoft Pipelines, in that you have a series of steps where the next depends on the previous, and all share variables.
Use Case
There are times that I need to test bot libraries and bot samples, so I need to do the following:
Install dependencies
Build the library
Run the library tests
Package the library
Use the created package to build a bot sample
Run the bot sample tests
Deploy or Start the bot sample
I have created several scripts that do some combination of the above steps, but it would be awesome if I can move the above steps to gaucho, check a checkbox to select which steps I want to run sequentially, and run them.
The text was updated successfully, but these errors were encountered: