Skip to content

shinyapps/posit cloud build logs - #453

Merged
mslynch merged 6 commits into
masterfrom
shinyapps-cloud-build-logs
Jul 17, 2023
Merged

mslynch merged 6 commits into
masterfrom
shinyapps-cloud-build-logs

Conversation

@mslynch

@mslynch mslynch commented Jul 14, 2023 •

Copy link
Copy Markdown
Member

Intent

Resolves #427.
Resolves #432.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

When a shinyapps.io task fails, we call the API to:

  1. Get the child of the failed task whose action is image-build
  2. Get and print the logs of that child task

Posit Cloud application builds don't have accessible logs yet (but will in the future). When a Posit Cloud task fails, we call the API to get the logs of the failed task, and if logs are returned, print them.

Automated Tests

Added tests for ShinyappsService.do_deploy and CloudService.do_deploy.

Directions for Reviewers

Add a dependency to my-shiny-app/requirements.txt that doesn't exist on PyPI, then run rsconnect deploy shiny my-shiny-app to deploy to shinyapps.io.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.

@github-actions

github-actions Bot commented Jul 14, 2023 •

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4228 2687 64% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/api.py 66% 🟢
rsconnect/exception.py 100% 🟢
rsconnect/http_support.py 85% 🟢
TOTAL 84% 🟢

updated for commit: 214828d by action🐍

@mslynch
mslynch requested review from mmarchetti and omar-rs July 14, 2023 15:45
@mslynch
mslynch marked this pull request as ready for review July 14, 2023 15:45
Comment thread CHANGELOG.md
## Unreleased

### Added
- Failed deploys to shinyapps.io will now output build logs. Posit Cloud application deploys will also output build logs once supported server-side.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe reword to "once server-side is supported"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm referring to connect-based outputs here, not server-side rendering.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, I misunderstood the comment. The words server-side are automatically associated to static outputs in my mind.

Comment thread tests/test_api.py Resolved
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.

Failure to deploy "Basic App" example: Error message could be improved. Retrieve shinyapps.io task logs for failed builds

3 participants