jvalkeal / build-zoo-handler Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Was only implemented for repository dispatch so need to handle workflow dispatch as well.
Use same defaults as with commit-changes
As starting to use more github labels to maintain status for various
things like backports, etc it'd be nice to have gh action to handle as
much as it's possible to auto-create and manage labels for issues.
This initial work would be around to create feature where these labeling
rules could be created with atop of jexl with particular syntax.
Now you get something like Error: Unexpected token : in JSON at position 3607
. Would be nice to see better error message.
Long running train build like in spring-cloud-dataflow, it'd be nice to see some kind of stats within build context like elapsed time how long a whole build takes, etc.
Once you get your multi repository product setup for gh actions, there's further things left like how could you fire a build of "everything"?
Simplest use case is to just fire up x number of workflow dispatches, in a correct order, waiting those workflows to succeed and eventually you should have last built repo. This is relatively simple for plain snapshot builds as you don't need to massage versions in a pom files(in case you're using maven).
For full release build this are more complex as we need to know a build version of a dependency project and that version is then a one which you'd need to massage poms in dependant projects.
It's expected that Build zoo Handler Payload
field is left empty if run manually. As that field should be base64 encoded json, should provide more output of a reason failure as otherwise workflow fails with Error: Unexpected token W in JSON at position 0
.
Testing actions is not an easy job as i.e. testing octokit and things around is cumbersome. This is a long running issue to get better test coverage so that there would be less need to have a bunch of test repos to test things manually.
If we find good use cases for this as you get user inputs and automatic branch checkout etc. Though we're kinda forced to have a field to pass on zoo payload via dedicated field.
When defining dispatch settings, owner
, repo
, ref
and workflow
could be added to a context from a controller. Then those could be used
unless user defines those manually.
We can check if commands exists, but it'd be nice if we could run a command and check that its exit status is 0
. This would allow more sanity check from an env.
Basically to latest version and to use new language features.
Accidentally fired worker workflow instead of a train/controller workflow and it went into a loop, oops!
In this case handler count is always staring from zero so loop checking doesn't work.
Currently we just support hard coded repository_dispatch as:
dispatch-handler-config: >
[
{
"if": "initial == true",
"owner": "fakeowner",
"repo": "fakerepo",
"event_type": "build-zoo-handler-release"
}
]
It'd be nice to have like action field and choose what happens like sending dispatch of failing.
dispatch-handler-config: >
[
{
"if": "data.event == 'next-dev-version-failed'",
"action": "fail",
"fail": {
"message": "hi, something went wrong"
}
}
]
This would allow to follow flow failure if repo is able to send back its failure.
If a dispatch flow needs to do something what can't be calculated automatically, only option really is to pass something when manually dispatching a workflow. This for example if train build need to do a milestone build, etc where version would need to be postfixed with -M1
or -RC1
.
If we just use a dedicated field and inject list of properties into a context, other running actions can get those settings from there and do something more clever.
As these are meant to get executed from controller via api's, user can accidentally execute via UI. Should prevent these mistakes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.