Artifacts: Make it possible to view HTML files with relative links (CSS etc. refs)

🗓-planned

#1

From @viktorbenei on Sat Dec 10 2016 10:29:41 GMT-0500 (EST)

Right now artifacts are exposed with special, pre-signed, time limited URLs. This means that the exact download / access link for an artifact is generated and does change every time it’s accessed.

This makes relative links between artifacts unusable when viewed directly on the web UI. This issue mainly affects HTML files/reports, where the HTML file references other resources (like CSS, JavaScript, etc. files) with relative links.

For more details see: https://github.com/jacoco/jacoco/issues/472

And the related discussion: https://github.com/bitrise-io/bitrise-contrib/issues/3#issuecomment-266070773

Copied from original issue: https://github.com/bitrise-io/bitrise.io/issues/103


Reporting on tests, code coverage, etc. available on dashboard?
Expose url to artifact outside of Build page / public install page for non app artifacts (.pkg, .zip, ...)
Generate a url for fastlane snapshot html output
Gradle Unit tests: How to copy logs to artifacts on failure?
How to run Android UI tests on virtual devices
Code Coverage Metrics
Testing react-native with EarlGrey & Fastlane on Bitrise
#2

From @viktorbenei on Sun Dec 11 2016 03:49:40 GMT-0500 (EST)

You can of course use the “compress” option of the Deploy to Bitrise.io step, and download the multi file HTML report as a ZIP file with all its linked resources/files.

This feature would allow the multi file HTML reports to be viewed on the bitrise.io UI directly.


#3

From @viktorbenei on Sun Dec 11 2016 05:05:25 GMT-0500 (EST)

Technical note: maybe do it with a new, separate artifact type, which accepts an artifact “pack” (set of files / multiple files), and stores & serves those as if those were in the same storage directory.


#4

There are quite a few open topics on bitrise.uservoice.com for this same feature. So just pointing that it’s a highly requested feature.
I’m currently using the “zip all and download the files” workaround but it’s extremely cumbersome.


#5

Make sure to vote on this feature here! :wink:

Btw which feature request(s) you’re referring to on bitrise.uservoice.com ?


#6

I clicked “like” but haven’t seen the Vote atop. Just did now.
There’re a few (which I commented on). Links at the bottom. With different wording, all have the same idea.

I just finish making a shell script to copy all the reports from different tools to the same folder with either .txt or .html naming and used the deploy to bitrise without zipping. It looks better, BUT, it still not great great.




#7

@sb_ronaldopace thanks for the links! :slight_smile:


#8

Here’s another use case where this feature would be cool. :slight_smile:


#9

Definitely planned, but probably as part of a more significant revision of the built in deployment/artifacts system (no ETA yet, but votes obviously help us to prioritize ;))


#10

How is it going?
I would like to see the jUnit report on the build dashboard.


#11

junit, Android lint, spoon, they are not only ones, there are many cases when this feature would be useful.
Downloading ZIP file is extremely awkward so I worked that around by pushing given directory to GitHub pages.


#12

Thanks for the infos @koral & @JcMinarro - this is definitely on our roadmap, we’re just not sure yet in what form we’d like to implement this. There’s a good chance that this won’t be implemented in the standard Artifacts system but instead another way. Unfortunately I can’t share more about this right now, just that this is indeed on our roadmap and we’ll definitely provide a solution one way or another :slight_smile:


#13

Here is my workaround step for Spoon results: https://github.com/DroidsOnRoids/bitrise-step-publish-spoon-results
Maybe it can be helpful for someone until there is a built-in support on bitrise.io,


#14

Definitely, thanks for sharing @koral! :slight_smile:

Just an update: we definitely plan to provide this feature, as soon as possible, but we don’t have an ETA yet (mainly because we’re working on some related system revisions / changes and we can only work on this one once we’re done with those).


#15

I’m debugging failing gradle tests. Attaching a zip with the HTML report to view the details is a painful workflow. I’m looking forward to Bitrise having full support for HTML artifacts.


#16

Definitely something we plan to have ASAP - will bring this up for a discussion with the team again (for a schedule).


#17

https://www.npmjs.com/package/web-resource-inliner works on Bitrise. I made a simple react app and was able to use it inline on bitrise.


#18

Wow, that’s awesome! Thanks for sharing @bootstraponline! :wink:


#19

Is this still a planned feature?


#20

Yes it is planned but not scheduled yet - please vote to bump its priority! :wink: