Open nsmithtt opened 4 months ago
If this works, as a follow on task we can add support for creating new issues from a failing flatbuffer.
A little bit of light googling, it seems like this isn't officially supported by GitHub API, let's investigate and see what options we have available to us. We could store the files on S3 and post links to them, or store in an LFS repo or something, not sure.
Added basic functionality for upload, download and create with GitHub issues using a public repo I created. Can transfer this over to this repo when it is opened up. Still need to mock up a fileserver and do the actual upload/download of the flat buffer file
We have an existing offline tool
ttrt
for working with flatbuffers. Let's add GitHub API support for supporting file upload of a flatbuffer to GitHub.For e.g.
Behind the scenes the
ttrt
script zips the flatbuffer and uses GitHub API to post the artifact to the issue.Notes:
.zip
otherwise GitHub will reject, for this we can use: https://docs.python.org/3/library/zipfile.htmlruntime/tools/python
, let's create a new submodulettrt/upload.py
ttrt/__init__.py
we can create new subcommandsupload
anddownload
Relevant docs: