-
Notifications
You must be signed in to change notification settings - Fork 406
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
Fastlane/GH build improvements: Add sync action and keepalive action, #28
Conversation
… align with Loop dev improvements, as previously added to iAPS in PR 46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to update all runner actions by GH to v4 (artifact and checkout ones) for Node runner compliance. The sync action was updated after a PR I submitted and latest should be v3.4.1 IIRC. See also pending PR here LoopKit/LoopWorkspace#120
Rest LGTM so far.
Anything that may have been missed, @marionbarker ?
.github/workflows/build_iAPS.yml
Outdated
if: | | ||
needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' && | ||
(vars.SCHEDULED_BUILD != 'false' || vars.SCHEDULED_SYNC != 'false') | ||
uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@v4 required here for nodeJS requirements
.github/workflows/build_iAPS.yml
Outdated
if: | | ||
needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' && | ||
vars.SCHEDULED_SYNC != 'false' | ||
uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@v3.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's v4, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, definitely. Sorry, brain fart.
Once this is updated, I will test the build. |
- use actions/checkout@v4 - use aormsby/Fork-Sync-With-Upstream-action@v3.4.1 - comment out "Select Xcode version" step to use the default Xcode (15.0.1) in macos-13 runner based on https://github.com/LoopKit/LoopWorkspace/pull/120/files by @dnzxy
Should be good now, please have a look, and test if possible :-) Thanks! |
Testing this now. Starting at instructions
|
summary:
test detailsFor those who have access to my fork of the private repo (happy to provide it to others by request), the actions can be viewed at: I did not have an alive branch. Tried creating one, but as expected - not good enough. This needs to be updated - note looking for iAPS/branches not Open-iAPS branches: Also - the current repo should be whatever the user calls it - we ran into a problem with LoopWorkspace where the user renamed her fork - which should be allowed - but then the build failed because action was looking for
branch detailsMy branch
|
Yup the alive branch creation is broken. It might actually be, that this is somewhat inaccessible to build (with alive stuff) and test via private repos. I'm about to leave for Valencia early tomorrow, so will definitely not be able to look into this. @bjornoleh the Run # Get ref for Artificial-Pancreas/iAPS:dev
gh: Resource not accessible by integration (HTTP 403)
{"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/git/refs#create-a-reference"}
Error: Process completed with exit code 1. |
...
Thanks for testing. I think your findings should be fixed now. Edit: also -f pushed the testflight.md changes now |
- UPSTREAM_REPO: nightscout/Open-iAPS - Search for and create `alive` branch by use of `${{ github.repository }}` context, instead of `${{ github.repository_owner }}/iAPS` - Create `alive` branch from `main` instead of `dev` - do not run the upstream sync action on the upstream repository (owner = nightscout) - update testflight.md with the Open-iAPS name
summary
test details
branch detailsSee earlier comment. Updated using the following steps.
Confirm Xcode builds with no issues. Make mods to alive branch does not exist directly on GitHub based on PM from bjorn. Made no difference. |
- Authenticate the curl API request by GH_PAT according to https://docs.github.com/de/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-in-a-github-actions-workflow-using-curl Thank you @dnzxy for the hint! This is a temporary requirement until the repositories are made public.
Tested and succeeded with most recent update. https://github.com/marionbarker/Open-iAPS/actions/runs/8428292151 |
LGTM! 😄 |
Merging this now, it has been well tested. |
* move basal to bottom, remove background rectangle of main chart * add selection popover * refactoring of main chart code * Various fixes * fix conversion to mmol/L with custom y axis scaling, clean up * fixes for mmol/L for popover * workaround for crash on <iOS 17 * move external insulin checkbox to bolus section to avoid scrolling * Small UI fixes * change treatments button text to be more descriptive when only adding carbs * fix not clickable edges of treatment button * change 'insulin' string to 'treatments' in history view when in 2 tab view * end loading animation when glucose data is stale --------- Co-authored-by: dnzxy <d.c.cengiz@googlemail.com> Co-authored-by: Andreas Stokholm <andreas@stokholm.me>
Fix various issues. Fix issues nightscout#21 , nightscout#26 and nightscout#28
and align with Loop dev improvements, as previously added to iAPS in PR 46.
Copied as of iAPS 540ae95, does not include e2e77a8.