Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): fix release build generation #1007

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

pendo324
Copy link
Member

@pendo324 pendo324 commented Jul 1, 2024

Issue #, if available:

Description of changes:
Recently in #969, the Makefile was refactored significantly, and the mechanism that was used to override the installation directory was removed (used here). This just adds that mechanism back. There could be a better way to do this, but for now just reverting back to how it was done before the recent change.

Testing done:
Tested locally. The _output/os/finch.yaml file correctly used /Applications/Finch/, which was the path I overwrote, as a prefix

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Member

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find.

@austinvazquez austinvazquez merged commit 5d5cc43 into runfinch:main Jul 1, 2024
22 checks passed
austinvazquez pushed a commit that referenced this pull request Jul 2, 2024
Issue #, if available:
- MSI release builds are broken, as seen in [this automated
run](https://github.com/runfinch/finch/actions/runs/9764308833/job/26959973907)
    - Debugged by looking at the lima stderr logs and found:
    ```
{"level":"fatal","msg":"failed to download
\"file://C:/actions-runner/_work/finch/finch/_output/os/finch-rootfs-production-amd64-1719439880.tar.gz\":
open
C:/actions-runner/_work/finch/finch/_output/os/finch-rootfs-production-amd64-1719439880.tar.gz:
The system cannot find the path
specified.","time":"2024-07-02T19:14:36Z"}
    ```

*Description of changes:*
- This regression occurred because `FINCH_ROOTFS_LOCATION_ROOT` was
removed from the Makefile during recent refactoring.
`FINCH_ROOTFS_LOCATION_ROOT` was used to override the path of the rootfs
file used at runtime by Lima. Removing it means that release builds,
which are installed to different locations than dev builds, will not
function. This PR makes it so Windows follows the macOS Makefile
variable name (`FINCH_OS_IMAGE_LOCATION_ROOT`), as seen in
#1007

*Testing done:*



- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

---------

Signed-off-by: Justin Alvarez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants