cfengine / cf-bottom Goto Github PK
View Code? Open in Web Editor NEW__init__
License: MIT License
__init__
License: MIT License
Title
nuf said
Ideally in Travis.
Right now, tom doesn't see reviews (in API they are separate from comments) so he will ask for reviews even if PR has been reviewed.
Title
We need to separate out a lot of parameters for @oleorhagen to run the bot. This is a proposal for the file:
config.json
:
{
"bots": [
{
"username": "cf-bottom",
"secrets": "cfengine-secrets.json",
"trust": ["olehermanse", "vpodzime", "craigcomstock"],
"reviewers": ["olehermanse", "vpodzime"],
"jenkins": "https://ci.cfengine.com/",
"orgs": ["cfengine"],
"repos": {
"cf-bottom/self": ["olehermanse", "vpodzime"],
"cfengine/core": ["olehermanse", "vpodzime", "craigcomstock"],
"cfengine/enterprise": ["olehermanse", "vpodzime", "craigcomstock"],
"cfengine/nova": ["olehermanse", "vpodzime", "craigcomstock"]
}
},
{
"username": "mender-bottom",
"secrets": "mender-secrets.json",
"trust": ["oleorhagen", "kacf"],
"reviewers": ["oleorhagen", "kacf"],
"jenkins": "https://mender-jenkins.mender.io/",
"orgs": ["mendersoftware"],
"repos": {
"mendersoftware/mender": ["kacf", "oleorhagen", "pasinskim"]
}
}
]
}
secrets.json
:
{
"GITHUB_TOKEN": "1234abcdef",
"GITHUB_USER": "cf-bottom",
"JENKINS_USER": "a111111",
"JENKINS_TOKEN": "1234abcdef",
"JENKINS_CRUMB": "1234abcdef"
}
(If JENKINS_CRUMB
is missing, it should still work, by not including it in header)
This part needs auth:
def wait_for_queue(self, url):
log.debug("Queue URL: {}".format(url))
queue_item = {}
while "executable" not in queue_item:
log.info("Waiting for jenkins build in queue")
sleep(1)
r = requests.get(url + "api/json")
See example: mendersoftware/mender#296
If the message contains the word "exotic", RUN_ON_EXOTICS
should be marked in jenkins.
It would be nice if our various automated tests could function as an approval.
For example, in CFEngine core we run Travis, and we can request Jenkins builds (with options for the difficulty of the jenkins gauntlent like exotics and deployment tests). It would be nice if tom would approve a PR (allowing merge) if both travis and Jenkins were green.
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.