Ticket #9534 (closed: wontfix)

Opened 6 years ago

Last modified 5 years ago

Prevent uploading of big files to UsageData

Reported by: Anders Markvardsen Owned by: Anders Markvardsen
Priority: major Milestone: Release 3.2
Component: Documentation Keywords:
Cc: Blocked By:
Blocking: #8919 Tester: Owen Arnold

Description

Create a git hook, similar to that for AutoTestData, that discourage uploading of large files to https://github.com/mantidproject/usagedata

Change History

comment:1 Changed 6 years ago by Anders Markvardsen

Russell points out:

The code for limiting the file size in the main repo is at https://github.com/mantidproject/mantid/blob/master/.githooks/pre-commit#L144. The thing is though that in order for this hook to fire, the file needs end up in the .git/hooks/ directory, which only exists in a cloned repo, not on github. We solve this problem by having CMake silently copy it into the right place. That option is of course not available for your repo so I think you may be stuck. I'm not sure there's anything better you can do than shout it loudly in the README. I suppose you could add the file and ask people to manually copy it into the right place (but they won't). Alternatively, you could look at other storage solutions (Dropbox like) as these files don't need versioning. I don't know if there's anything where you can limit file size though.

comment:2 Changed 6 years ago by Anders Markvardsen

  • Status changed from new to assigned

To tester: based on Russell's comment stick to friendly reminder

comment:3 Changed 6 years ago by Anders Markvardsen

  • Status changed from assigned to verify
  • Resolution set to wontfix

comment:4 Changed 6 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:5 Changed 6 years ago by Owen Arnold

  • Status changed from verifying to closed

I accept these comments.

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10377

Note: See TracTickets for help on using tickets.