You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
1.3 KiB
14 lines
1.3 KiB
prompt: |
|
The preview did successfully deploy. The push triggered two deliveries from the webhook. One succeeded and one failed. I have pasted the results into two text files respectively. Why are there two? Why is one failing?12:01 PMGood catch. Two events are firing because: |
|
|
|
answer: |
|
Push event (delivery2.txt) - Triggered by any push to any branch. Your webhook returns {"ignored":true} because the code checks for pull_request event type and ignores others. This is correct behavior. |
|
Pull request sync event (delivery1.txt) - Triggered because the branch is associated with an open PR. This is the one that actually builds the preview. It shows "context deadline exceeded" because the build takes longer than Gitea's webhook timeout (~10 seconds), but the build still completes successfully in the background. |
|
|
|
The "failure" isn't really a failure - Gitea just gave up waiting for a response, but the server kept running and finished the build. That's why you see "Preview built" in the logs. |
|
To fix the timeout warning, the webhook should respond immediately and run the build asynchronously. But functionally, everything is working correctly: |
|
|
|
Push event: ignored (correct) |
|
PR sync event: times out but build completes (acceptable) |
|
|
|
The preview at https://preview.corneruniverse.com/toonpets.corneruniverse.com/pr-2/ should show your changes. Does it? |