tenstorrent / tt-mlir

Tenstorrent MLIR compiler
https://tenstorrent.github.io/tt-mlir/
Apache License 2.0
74 stars 11 forks source link

Automatic issue filing / flatbuffer upload/download #44

Open nsmithtt opened 4 months ago

nsmithtt commented 4 months ago

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.

# Upload 
ttrt upload --issue 44 out.ttnn
# Download 
ttrt download --issue 44 out.ttnn

Behind the scenes the ttrt script zips the flatbuffer and uses GitHub API to post the artifact to the issue.

Notes:

Relevant docs:

nsmithtt commented 4 months ago

If this works, as a follow on task we can add support for creating new issues from a failing flatbuffer.

nsmithtt commented 4 months ago

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.

ttdloke commented 4 months ago

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