Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1560

S3 Artifact handler corrupts Clover tab in Bamboo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: long term roadmap
    • Component/s: None
    • Labels:
      None
    • Symptom Severity:
      Severity 2 - Major

      Description

      Bamboo 5.7 introduces new artifact handler to store files in Amazon S3. Due to a fact that it works on a file-by-file basis, we cannot expose the entire HTML report as a 'site' embedded in the <iframe>. As a consequence it looks like this:

      Workaround:

      Do not use S3 artifact handler for builds with Clover. Default handler settings can be overridden in Plan configuration > Miscellaneous:

      Possible fixes:

      1) Implement a wrapper on S3 handler, which would download all files from an artifact definition to some temporary directory and expose it in <iframe>

      • problem: Clover's reports may have up to several GB for large projects, downloading all files every time someone opens the 'Clover' tab will be time consuming, we'd need to keep such artifacts for a longer period of time

      2) Add warnings for Clover integration in the UI in case when S3 handler is found. Write information about this limitation on confluence.atlassian.com.

      3) Create a ZIP archive out of Clover Report artifact and give user an ability to download this file.

      4) Add extra option in artifact definition so that user could select which handler should keep given artifact. Thanks to this, S3 could be excluded.

      5) Due to a fact that new Clover HTML ADG reports do not contain frames, we could think about a thin wrapper, which would download only one page and replace all original links in the HTML file by proper links to S3; if user would click on a link, he would get another page processed this way...

      • we'd have to handle *.js, *.css, images etc too.

      5b) Create something like a "ZIP File Handler", which could serve files from an archive (then we could pack Clover's HTML report and store on S3 or any other medium). It would also require rewriting links.

      6) Look for some solution provided by Amazon, such as Static Website Hosting on S3

      http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html

        Attachments

        1. artifact_handlers.png
          artifact_handlers.png
          33 kB
        2. clover_artifact.jpg
          clover_artifact.jpg
          507 kB
        3. clover_dashboard_localstorage.jpg
          clover_dashboard_localstorage.jpg
          633 kB
        4. clover_dashboard_s3storage.jpg
          clover_dashboard_s3storage.jpg
          1.59 MB
        5. clover-tab-with-s3-handler.png
          clover-tab-with-s3-handler.png
          72 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mparfianowicz Marek Parfianowicz
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: