Skip to content

Commit e263966

Browse files
authored
Merge pull request #919 from marionbarker/working-docs
Browser Build problem announcement
2 parents 9621fb1 + bec80e0 commit e263966

File tree

4 files changed

+74
-137
lines changed

4 files changed

+74
-137
lines changed

docs/browser/bb-errors.md

Lines changed: 39 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Help with Errors
22

3+
!!! important "Browser Build Temporarily Unavailable for New Builders and Some Updating Builders"
4+
Over the last few weeks, the ability to add identifiers has been degrading and we provided what we thought was a solution - it was not.
5+
6+
If your build is failing, reach out to see if the failure reason is something we can fix, but otherwise, please wait.
7+
8+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
9+
10+
311
!!! important "Get Help, Not Frustrated"
412
For first-time builders, there are a lot of one-time steps that all have to be correct and many screens look similar.
513

@@ -89,6 +97,12 @@ If you get an error in an Action. Click on the link and scroll down to view the
8997
9098
## New Builder: Quick Reference
9199
100+
!!! important "Browser Build Temporarily Unavailable for New Builders"
101+
New builders cannot build at this time because we cannot add Identifiers.
102+
103+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
104+
105+
92106
### New Builder: Validate <code>Secrets</code> Error
93107
94108
This is the first step. If you have not succeeded (&#x2705;) with this action - STOP.
@@ -104,6 +118,12 @@ If you want to try to solve it yourself, refer back to these section in the docu
104118
105119
### New Builder: Add Identifiers Error
106120
121+
!!! important "Browser Build Temporarily Unavailable for New Builders"
122+
New builders cannot build at this time because we cannot add Identifiers.
123+
124+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
125+
126+
107127
If you succeeded with Validate <code>Secrets</code>, this should also succeed. If it does not, please skip ahead to [Action: `Add Identifiers` Error`](#action-add-identifiers-errors).
108128
109129
Do not hesitate to [ask a mentor for help](#where-to-get-help-with-browser-build).
@@ -152,7 +172,12 @@ Ignore the warnings - this does not affect the build.
152172
153173
## Rebuild Errors: Quick Reference
154174
155-
> There's a new error to annoy you. We are finding many experienced builders have to [Handle the `FastLane API Key` Error](#handle-the-fastlane-api-key-error). We don't know why, but it is happening a lot, so check out that section if you have already fixed the `Check Upstream and Keep Alive` Error.
175+
!!! important "Browser Build Temporarily Unavailable for New Builders and Some Updating Builders"
176+
Over the last few weeks, the ability to add identifiers has been degrading and we provided what we thought was a solution - it was not.
177+
178+
If your build is failing, reach out to see if the failure reason is something we can fix, but otherwise, please wait.
179+
180+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
156181
157182
### `Check Upstream and Keep Alive` Error
158183
@@ -760,134 +785,29 @@ Assuming you have successfully built using the Browser-Build / *GitHub* method b
760785
761786
## Handle the `FastLane API Key` Error
762787
763-
We don't know why, but sometimes you have to take these steps to restore your ability to build. Make sure you really need to do this. The symptom is you were previously building successfully and all your license agreements are up to date, but all of a sudden you can no longer build.
764-
765-
* Run the `Action: Add Identifiers`
766-
* If you don't remember how to do that, this [link](identifiers.md#add-identifiers){: target="_blank" } opens in a separate tab with complete instructions
767-
* If that fails with the error `The provided entity includes an unknown relationship`, then yes - do these steps.
768-
769-
After completing the steps, try `Action: Add Identifiers` again and if it works, you can start building again.
770-
771-
The steps are:
772-
773-
1. [Refresh `FastLane API Key`](#refresh-fastlane-api-key)
774-
1. [Update Secrets](#update-secrets)
775-
1. [Delete Match-Secrets](#delete-match-secrets)
776-
1. [Revoke Extra Distribution Certificate](#revoke-extra-distribution-certificate)
777-
1. [Delete Invalid Profiles](#delete-invalid-profiles)
778-
1. [Run Actions](#run-actions)
788+
!!! important "Browser Build Temporary Issue"
789+
Over the last few weeks, the ability to add identifiers has been degrading and we provided what we thought was a solution - it was not.
779790
780-
This is a complicated fix. Do not hesitate to [ask a mentor for help](#where-to-get-help-with-browser-build).
791+
If your build is failing, reach out to see if the failure reason is something we can fix, but otherwise, please wait.
781792
782-
### Refresh `FastLane API Key`
793+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
783794
784-
You will [revoke](#revoke-key), [generate](#generate-key) and [save](#download-key-and-save-secrets) a new key with the same name: `FastLane API Key`. It should be available immediately.
785-
786-
#### Revoke Key
787-
788-
This step is done at the App Store Connect site, click on this [link](https://appstoreconnect.apple.com/access/integrations/api).
789-
790-
1. Click on the `Edit` button to open a new window
791-
2. Select the key you want to revoke (`FastLane API Key`)
792-
3. Click on the `Revoke Key` button
793-
4. Click on the `Revoke` button
794-
795-
> ![revoke the FastLane API Key](img/api-key-revoke.svg){width="500"}
796-
797-
The key has now been revoked and you can no longer use it.
798-
799-
#### Generate Key
800-
801-
Continuing on the same [webpage](https://appstoreconnect.apple.com/access/integrations/api), generate a new key.
802-
803-
1. Click on either the plus sign or the Generate API Key button to open a new window
804-
2. Copy the name (below) and paste into the `Name` box
805-
806-
```{ .text .copy }
807-
FastLane API Key
808-
```
809-
3. Click in the box where it says start typing and a dropdown list appears - select Admin
810-
4. Confirm the name and that "Admin" is selected and then click on the `Generate` button.
811-
812-
> ![generate a new FastLane API Key](img/api-key-generate.svg){width="500"}
813-
814-
#### Download Key and Save Secrets
815-
816-
Your screen should now look like this where the `Copy Key ID` shows up when you hover your mouse near the `KEY ID` and you can only `Download API Key` one time:
817-
818-
> ![App Store Connect Key page](img/api-key-in-process-regen.svg){width="700"}
819-
{align="center"}
795+
We have removed the section on getting a new Fastlane API Key - that is not the solution to what turns out to be a bigger problem.
820796
821-
**Summary:** You need to download the new key and move it to the special folder where you keep secrets. Your Secrets Reference file should be in the same place. Carefully delete the information from the `FastLane API Key` you just revoked and add the new information for the one you just generated.
797+
The rest of this section has some steps that may be needed in the future. Do not follow any of these steps at this time - they will not help until the underlying connection between *GitHub* Actions and *Apple* is working again.
822798
823-
**Detailed Steps:**
824-
825-
You need a new `FASTLANE_KEY_ID` and a new `FASTLANE_KEY`, but the `FASTLANE_ISSUER_ID` is unchanged because that is tied to your developer account. Save your updated Secrets Reference File.
826-
827-
1. Find your `AuthKey` downloaded file in your downloads folder and move it to your special folder so you can find it again when you need it.
828-
The next task is to rename the file so you can open it.
829-
Highlight the filename and choose rename, then add ".txt" after ".p8". In other words, modify `AuthKey_AAAAAAAAAA.p8` to `AuthKey_AAAAAAAAAA.p8.txt` and click on `Use .txt` when questioned.
830-
> ![rename the p8 file](img/p8-key-rename.png){width=200}
831-
832-
2. Double-click to open the `AuthKey_AAAAAAAAAA.p8.txt` file. It will look similar to the screenshot below. You need to highlight **ALL OF THE CONTENTS** of that file and copy it and then paste it both into your Secrets Reference file and the value for `FASTLANE_KEY_ID` when you [Update Secrets](#update-secrets).
833-
* **Click inside that file**
834-
* Highlight **all** the text, and then
835-
* Copy **all** of the text to the clipboard (Cf. screenshot below).
836-
* On a *Mac*, press ++command+"A"++ to select all, then press ++command+"C"++ to copy the selection.
837-
* On a **PC**, press ++control+"A"++ to select all, then press ++control+"C"++ to copy the selection.
838-
839-
> ![img/apns-copy-key.png](../nightscout/img/apns-copy-key.png)
840-
841-
3. The API Key ID is the 10-character name embedded in the filename: `AuthKey_AAAAAAAAAA.p8.txt`. You can also use the `Copy Key ID` button as mentioned at the [beginning of this section](#download-key-and-save-secrets). Either method, you update the `FASTLANE_KEY_ID` value in both into your Secrets Reference file and the value for `FASTLANE_KEY` when you [Update Secrets](#update-secrets).
842-
843-
Reminder of the format for these two Secrets:
844-
845-
```
846-
FASTLANE_KEY_ID
847-
<looks like this>
848-
AAAAAAAAAA
849-
850-
FASTLANE_KEY
851-
<looks like this>
852-
-----BEGIN PRIVATE KEY-----
853-
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
854-
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
855-
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
856-
AAAAAAAA
857-
-----END PRIVATE KEY-----
858-
```
859-
860-
### Update Secrets
861-
862-
Open the *GitHub* webpage for your organization or the repository if you are building with a personal account.
863-
864-
Once you open the *GitHub* webpage, navigate to Settings and then scroll down to the `Secrets and variable` row and choose `Actions`.
865-
866-
!!! tip "Use a direct link"
867-
If you prefer, you can generate a direct link to this location:
868-
869-
``` {.text .copy title="If you use an organization" }
870-
https://github.com/organizations/my-name-org/settings/secrets/actions
871-
```
872-
873-
``` { .text .copy title="If you do not use an organization" }
874-
https://github.com/my-name/LoopWorkspace/settings/secrets/actions
875-
```
876-
877-
Refer to graphic below for help. This example is for updating an organization secret. For a personal repository update, there is no step 2. You will be updating 2 different <code>Secrets</code>.
799+
## Other Help Steps
878800
879-
1. Tap on the pencil beside the <code>Secret</code> you plan to change; you must change both; the order is not important
880-
* `FASTLANE_KEY`
881-
* `FASTLANE_KEY_ID`
882-
1. Click on the `enter a new value` button if it exists (organization only)
883-
1. Click in the `Value` box for that <code>Secret</code> and paste in the value
884-
1. Click on `Save changes`
801+
These help steps might be needed so the documentation is here.
885802
886-
> ![screen with instructions to update a secret](img/update-org-secret.svg){width="700"}
803+
!!! important "Browser Build Temporary Issue"
804+
Do not follow any of these steps a this time - they will not help until the underlying connection between *GitHub* Actions and *Apple* is working again.
887805
888806
### Delete `Match-Secrets`
889807
890-
This is always required after a new `FastLane API Key` has been generated.
808+
Make sure you really need to do this - please [ask a mentor for help](#where-to-get-help-with-browser-build).
809+
810+
Make sure you only delete `Match-Secrets`. Do NOT delete the repository of the app you are trying to build.
891811
892812
Open the *GitHub* website for your organization or personal account.
893813
@@ -952,24 +872,6 @@ Your profiles will be displayed. Under the `Expiration` column, you might see an
952872

953873
> ![delete selected profiles](img/profiles-03.png){width="500"}
954874
955-
### Run Actions
956-
957-
If you can't remember how to run the actions, the link for each opens a separate page with details and graphics.
958-
959-
* If [`Action: Add Identifiers`](identifiers.md#add-identifiers){: target="_blank" } fails with the same error as before, you might need to revoke and generate the [`FastLane API Key` again](#refresh-fastlane-api-key). (I had to do it twice when this happened to me.)
960-
961-
* If `Action: Add Identifiers` succeeds continue with these two actions:
962-
963-
* [`Create Certificates`](certs.md#create-certificates){: target="_blank" }
964-
* [`Build`](build-yml.md#build-the-loop-app){: target="_blank" }
965-
966-
If these all succeed, you are done with the `FastLane API Key` Error steps.
967-
968-
!!! important "Personal *GitHub* Account"
969-
If you are using a personal *GitHub* account to build instead of an organization, you must update your <code>Secrets</code> for `FASTLANE_KEY_ID` and `FASTLANE_KEY` for each of the repositories.
970-
971-
## Other Help Steps
972-
973875
### Delete Identifiers
974876

975877
These instructions are useful if:

docs/browser/bb-overview.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
## Build with a Browser
22

3+
!!! important "Browser Build Temporarily Unavailable for New Builders and Some Updating Builders"
4+
Over the last few weeks, the ability to add identifiers has been degrading and we provided what we thought was a solution - it was not.
5+
6+
This affects a lot of people - not just Open Source Automated Insulin Delivery Apps. We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
7+
8+
> Building with a Mac still works.
9+
10+
> If your Identifiers, Certificates and Profiles are up to date, Browser Build still works.
11+
12+
We suggest you check when your most recent build in TestFlight will expire.
13+
14+
If you are able to build - do it now - that gives you 90 days.
15+
16+
To [Build](bb-update.md#build-the-app){: target="_blank" }:
17+
18+
1. Open your repository at github
19+
2. Tap on the Action tab and look at the Action List
20+
3. If necessary, enable Build Action and run it
21+
4. If that succeeds, you have given yourself 90 days
22+
5. If that fails, reach out to see if the failure reason is something we can fix, but otherwise, please wait
23+
324
* <span translate="no">Loop 3</span>&nbsp;can be built with a web browser using <span translate="no">GitHub Actions</span>
425
* The app is then installed by you on your phone using the *TestFlight* app
526
* If you prefer to use *Xcode* on your *Mac*, head over to [Build with *Mac*](../build/overview.md){: target="_blank" }

docs/browser/identifiers.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ The `Validate Secrets` &nbsp;<span class=notranslate>Action</span>&nbsp; should
6767

6868
## <code>Add Identifiers</code>
6969

70+
!!! important "Browser Build Temporarily Unavailable for New Builders and Some Updating Builders"
71+
The Add Identifiers action does not work at this time.
72+
73+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
74+
75+
7076
??? abstract "Section Summary (click to open/close)"
7177
1. Click on the "Actions" tab of your LoopWorkspace repository.
7278
1. On the left side, select "2. Add Identifiers".

docs/browser/intro-summary.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Summary of Steps
22

3+
!!! important "Browser Build Temporarily Unavailable for New Builders"
4+
New builders cannot build at this time because we cannot add Identifiers.
5+
6+
If you want to work through all the steps up to when you Add Identifiers in Prepare Identifiers, that is fine, but you will not be able to proceed past that point. You will not be able to build the app through this method, at this time.
7+
8+
We are confident that the connection between *GitHub* Actions and *Apple* will be fixed. For now, please be patient.
9+
10+
311
???+ info "Time Estimate (click to open/close)"
412
- If you have never built the *Loop* app (allow up to one week elapsed time)
513
* Request and get an <span>*Apple Developer* Account</span>: 1-2 days

0 commit comments

Comments
 (0)