You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to remove the possibility that users need to manually download the frontend bundle from GitHub - it is presenting problems with #7338.
I have 2 ideas for that:
provide a proxy service that gets and caches frontend archives
push new frontend archives to GitHub external storage like a s3 bucket
Both are trivial to build but add a bit of infrastructure. I would be willing to build and standup either solution. Thoughts @SchrodingersGat@wolflu05?
#7338 is a mixture of 2 things: the script assumes that git is present (which isn’t required on package installations) and than would have to get the frontend package from GitHub. The second part is an issue because you need to manually download the frontend package from GitHub Artifacts for non-tagged commits - see
GitHub doesn't allow artifact downloads from anonymous users. Either download the following file
All non-tagged versions need to manually get the frontend on bare metal or package installer methods. This was fine with PUI being in dev but it being the main UI this will break deployments.
So we need a way to get the frontend without manual intervention. This can be done by either 1 or 2.
I would be fine with both options, but if we choose the first, we need to know that gh artifacts are deleted after 90 days, which means that we could only provide builds for the users for the last 90 days. If they want to use an older version, they need to build them their self (is currently already the case).
I have created a PR that shows where the current way is limited: #7655
Important info: The package build context does not have a way to pass tokens in - so it can only use publicly available resources during the build process
Activity
[-]Release: Package[/-][+][FR/P-UI] Release: Package[/+]matmair commentedon Jul 14, 2024
I would like to remove the possibility that users need to manually download the frontend bundle from GitHub - it is presenting problems with #7338.
I have 2 ideas for that:
Both are trivial to build but add a bit of infrastructure. I would be willing to build and standup either solution. Thoughts @SchrodingersGat @wolflu05?
SchrodingersGat commentedon Jul 14, 2024
@matmair can you explain why #7338 is happening and what either 1) or 2) is solving?
matmair commentedon Jul 14, 2024
#7338 is a mixture of 2 things: the script assumes that git is present (which isn’t required on package installations) and than would have to get the frontend package from GitHub. The second part is an issue because you need to manually download the frontend package from GitHub Artifacts for non-tagged commits - see
InvenTree/tasks.py
Line 1345 in 76f8a2e
All non-tagged versions need to manually get the frontend on bare metal or package installer methods. This was fine with PUI being in dev but it being the main UI this will break deployments.
So we need a way to get the frontend without manual intervention. This can be done by either 1 or 2.
wolflu05 commentedon Jul 14, 2024
I would be fine with both options, but if we choose the first, we need to know that gh artifacts are deleted after 90 days, which means that we could only provide builds for the users for the last 90 days. If they want to use an older version, they need to build them their self (is currently already the case).
matmair commentedon Jul 15, 2024
I have created a PR that shows where the current way is limited: #7655
Important info: The package build context does not have a way to pass tokens in - so it can only use publicly available resources during the build process
matmair commentedon Aug 9, 2024
This will have to be pushed back. I have privately tested 2 but it will take to long too get this into 0.16.0
matmair commentedon Nov 12, 2024
This works for release builds, maybe in the future there could be a warning if a build does not include PUI.