Closed Bug 925266 Opened 12 years ago Closed 11 years ago

Set up Travis artifacts for Gaia UI tests HTML report

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: zcampbell)

References

()

Details

(Whiteboard: [gaia-ui-test])

Attachments

(1 file, 1 obsolete file)

46 bytes, text/x-github-pull-request
jlal
: review+
davehunt
: review+
Details | Review
We should set up Travis artifacts so we can see the HTML report from Gaia UI tests. This includes useful resources for understanding failures (screenshots, page source, settings). See http://about.travis-ci.org/blog/2012-12-18-travis-artifacts/ for details.
Component: Gaia → Gaia::UI Tests
It looks like even I could do this but for the part about secret access keys. James can you help the keys and I'll experiment with the rest?
Flags: needinfo?(jlal)
I just did this for a different project, sure :) The encryption is easy but I need to get the S3 credentials first... I will try to find the right person on the a-team who can generate some keys for us.
Flags: needinfo?(jlal)
jgriffin: Do you know who might have these credentials?
Flags: needinfo?(jgriffin)
We haven't used S3 on the a-team account yet; lightsofapollo is discussing this with glob atm.
Flags: needinfo?(jgriffin)
No longer blocks: 948177
Depends on: 948177
Attached file github pr (obsolete) —
I wanted this to be in the root (of that job) rather than nestled in a folder so people are more likely to look at it. James, it is entirely self contained so just one file.
Attachment #8345260 - Flags: review?(jlal)
Attachment #8345260 - Flags: review?(dave.hunt)
Also strictly speaking this does not depend on bug 948177, it could be merged before that with no ill effects.
Comment on attachment 8345260 [details] [review] github pr Looks good. Would like to see the XML output included too, but r+ with or without this change.
Attachment #8345260 - Flags: review?(dave.hunt) → review+
Comment on attachment 8345260 [details] [review] github pr Zac- I don't think this will work as is.. we still need to run the travis-artifacts script (see after_script in s3uploads).
Oh, maybe I have mis-understood the after_script but I thought this, if merged, would mean the html report would just sit in artifacts/ unused until #948177 is merged?
(In reply to Dave Hunt (:davehunt) from comment #8) > Looks good. Would like to see the XML output included too, but r+ with or > without this change. I just couldn't see the reason to include the XML output if there's no clear need for it. (and easily added when there is a need)
(In reply to Zac C (:zac) from comment #10) > Oh, maybe I have mis-understood the after_script but I thought this, if > merged, would mean the html report would just sit in artifacts/ unused until > #948177 is merged? It will need a follow-up pull to add tests/travis_ci/gaia_ui_tests/after_script to actually perform the upload as in James' example.
OK! don't merge this now; I'll re-do it later after https://github.com/mozilla-b2g/gaia/pull/14519 is merged.
Comment on attachment 8345260 [details] [review] github pr I will do the final upload step later today and mark Zac for review... all we need is to call travis artifacts and output a link url.
Attachment #8345260 - Flags: review?(jlal)
Attached file github pr
Attachment #8345260 - Attachment is obsolete: true
Attachment #8348671 - Flags: review?(jlal)
Attachment #8348671 - Flags: review?(dave.hunt)
Note dave this won't work on pull requests because a pull is outside the repo for which the key was generated. I understand this means it will work on merge commits only for the time being.
Comment on attachment 8348671 [details] [review] github pr Comments in pull request.
Attachment #8348671 - Flags: review?(dave.hunt) → review-
Comment on attachment 8348671 [details] [review] github pr updated the PR
Attachment #8348671 - Flags: review- → review?(dave.hunt)
Comment on attachment 8348671 [details] [review] github pr Looks good, but I'm not familiar with the various components here. Will appreciate James' review too.
Attachment #8348671 - Flags: review?(dave.hunt) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → zcampbell
James, this has regressed. I'm not sure when it started. Can you investigate? home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday.rb:189:in `lookup_middleware': :json is not registered on Faraday::Response (Faraday::Error) from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:203:in `use_symbol' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:96:in `response' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/lib/travis/client.rb:39:in `block in create_connection' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday/connection.rb:91:in `initialize' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in `new' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in `new' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/lib/travis/client.rb:38:in `create_connection' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/lib/travis/client.rb:9:in `initialize' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/lib/travis/artifacts/cli.rb:14:in `new' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/lib/travis/artifacts/cli.rb:14:in `initialize' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/bin/travis-artifacts:4:in `new' from /home/travis/.rvm/gems/ruby-1.9.3-p484/gems/travis-artifacts-0.2.2/bin/travis-artifacts:4:in `<top (required)>' from /home/travis/.rvm/gems/ruby-1.9.3-p484/bin/travis-artifacts:23:in `load' from /home/travis/.rvm/gems/ruby-1.9.3-p484/bin/travis-artifacts:23:in `<main>' from /home/travis/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval' from /home/travis/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>' Done. Your build exited with 1.
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Flags: needinfo?(jlal)
Resolution: FIXED → ---
This bug was resolved, so I think we should open a new bug for the regression rather than reopen this bug.
Looks like this is working again.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago11 years ago
Flags: needinfo?(jlal)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: