Comments (10)
That's a great idea, adding that to the roadmap.
from sauce_whisk.
Also pass_job function always passes, perhaps this is being caused by something down the stack. I would like if name=, build= methods are added globally on SauceWhisK::
from sauce_whisk.
pass_job
is intended to always pass; The opposite method is fail_job
.
If you want to set the status to something else, you can use:
SauceWhisk::Jobs.change_status job_id, status
which takes true for passed, false for failed
from sauce_whisk.
I understood that but what I am asking is a self method on sauce whisk
module for seeing the name. Reason being pass job always works but fetching
a job by id is flaky. I can give a demonstration in 2 hours over hangout.
On Feb 4, 2014 7:08 PM, "Dylan Lacey" [email protected] wrote:
pass_job is intended to always pass; The opposite method is fail_job.
If you want to set the status to something else, you can use:
SauceWhisk::Jobs.change_status job_id, status which takes true for
passed, false for failedReply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-34133801
.
from sauce_whisk.
Oh, so pass_job doesn't ever timeout with a 400 error. WEEEIRD. I'll check it out.
I think having name and build accessors is a great idea, also. I'll add to the roadmap too.
from sauce_whisk.
Any update?
from sauce_whisk.
hmm..
from sauce_whisk.
I ran into this problem. The issue occurs when you try and fetch the job while it is still running. You can call SauceWhisk::Jobs.get(job_id) no problem - the 400 Bad Request is the response when trying to fetch the job assets (/job_id/assets). Jobs.fetch will always call this.
The #fetch method should be updated so it still succeeds and returns a valid job even if /assets isn't available (I assume because the job is not yet finished).
from sauce_whisk.
As a workaround I'm currently monkey patching SauceWhisk::Jobs to add a new method:
def self.fetch_without_assets(job_id)
job_hash = JSON.parse(get job_id)
Job.new(job_hash)
end
from sauce_whisk.
Closing due to age.
from sauce_whisk.
Related Issues (20)
- Rake install executes twice HOT 1
- Failing tests using rspec command HOT 7
- Travis isn't running the tests HOT 9
- Add a .delete method to individual jobs HOT 1
- Inconsistent ENV usage across languages is problematic HOT 6
- Example for changing sauce test name
- Delete assets deleting job instead
- It should be possible to set rest_retries and asset_fetch_retries on the SauceWhisk object. HOT 1
- Dependency has security issues
- 0.18 release missing from github releases page? HOT 2
- Gemnasium out of sync
- Improve error handling for job fetch HOT 1
- missing iOS specific details like device-orientation HOT 1
- Unable to activate sauce_whisk-0.0.21, because json-2.0.3 conflicts with json (~> 1.8.1) HOT 2
- Is it possible to make this gem compatible with higher versions of JSON, JSON 1.8.x seems to be incompatible with ruby 2.4.0 HOT 2
- undefined method `browser' for nil:NilClass for @driver HOT 2
- missing option to communicate with eu-central-1 HOT 2
- Unable to set public values
- Job links may not reflect the correct environment
- Compatibility with Ruby 3.2.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sauce_whisk.