hackling / morse Goto Github PK
View Code? Open in Web Editor NEWA simple script that will pull down your semaphore logs and test any failed tests
A simple script that will pull down your semaphore logs and test any failed tests
A simple setup script for Morse would be nice, rather than having to make the user create a file with their token and put it in a certain place.
I think part of this would include the movement of the token file to be somewhere inside the repo, rather than the home directory.
There are cases on Semaphore where branches have failed but mightn't have failing tests on them, or other tests which aren't run through rspec failed, or someone stopped the build.
Perhaps a better message would be 'Unable to find any failing RSpec tests'?
Currently in this situation the following error message is output...
~/s/envision » morse ± hotfix/workforce-widget-fix-2*:97a40fe +9 11:16:06
/Users/parameme/bin/morse:81:in `find_and_cache_branch': undefined method `[]' for nil:NilClass (NoMethodError)
from /Users/parameme/bin/morse:71:in `rescue in branch_id'
from /Users/parameme/bin/morse:68:in `branch_id'
from /Users/parameme/bin/morse:29:in `main'
from /Users/parameme/bin/morse:141:in `<main>'
Connecting to Semaphore is a bit slow at times.
It would be nice if we could have morse cache the results that it pulls down and you could run morse against those cached results.
I think doing this on a per branch basis is YAGNI, and just having one set of cached results would be fine that you could run against with morse --cached --other-options
.
We should just store the output that you get from running morse
without options, rather than the build log.
If there's a defined branch ID and semaphore is returning a 404 when querying status, Morse should probably clear the cached ID and fetch a new one, if the branch still isn't found then present an error.
When morse first finds your branch, it stores the ID so that it doesn't have to look for it again.
However, at no point do we clean that up after the branch is long gone.
Part of this could be fixing #5 and when it returns a 404, it triggers a clean, and then tries to find it again.
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.