Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-5489

[mender-artifact] clean up /tmp on exit after any errors

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Story Points:
      8
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      Acceptance criteria:

      • all the temporary data is removed on exit
      • especially verify:
      # du -sh /tmp/mender-artifact*
      3.5G	/tmp/mender-artifact1494583354
      3.5G	/tmp/mender-artifact1522867130
      3.5G	/tmp/mender-artifact1795055585
      3.5G	/tmp/mender-artifact2855962242
      3.5G	/tmp/mender-artifact290136581
      3.5G	/tmp/mender-artifact34677209
      3.5G	/tmp/mender-artifact4264657384
      
      • include a test scenario that checks the total size of /tmp before and after at least 10 mender-artifact runs with and without errors and verifies that it has not increased
      • this can be tested with passing *.img files instead of *.sdimg files to cp command (as far as I remember)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            merlin Peter Grzybowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support