Skip to content

deploy/write-manifest tensorflow #589

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

Merged
merged 2 commits into from
May 15, 2024
Merged

deploy/write-manifest tensorflow #589

merged 2 commits into from
May 15, 2024

Conversation

aronatkins
Copy link
Collaborator

@aronatkins aronatkins commented May 13, 2024

Intent

Allow manifests/deploys of TensorFlow models.

Fixes https://github.com/rstudio/connect/issues/26884

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

Add entrypoints for TensorFlow commands. Removed R/Python/image arguments in situations where they do not apply (e.g. static content).

Automated Tests

Test assembly of manifest and bundle; will add integration tests separately.

Directions for Reviewers

Checklist

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

@aronatkins aronatkins requested review from toph-allen and dbkegley May 13, 2024 14:57
Copy link

github-actions bot commented May 13, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4807 3566 74% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/bundle.py 78% 🟢
rsconnect/main.py 61% 🟢
TOTAL 70% 🟢

updated for commit: 4975cc5 by action🐍

@aronatkins aronatkins force-pushed the aron-tf branch 2 times, most recently from 28bc095 to bea48c2 Compare May 13, 2024 17:19
@aronatkins aronatkins marked this pull request as ready for review May 14, 2024 15:32
help=(
"Deploy a TensorFlow model to Posit Connect. Requires Posit Connect 2024.05.0 or later."
"\n\n"
"DIRECTORY is the path containing a TensorFlow model."
Copy link
Contributor

Choose a reason for hiding this comment

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

Should DIRECTORY be in all caps here? If this is just a convention I'm unaware of, ignore this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The all-caps is a convention we used for Quarto content commands. Its presence feels a little redundant, but folks found it helpful during early testing.

Comment on lines -2082 to -2083
# check all runtime_environment vars
single_file_index_file_ans = {
Copy link
Contributor

Choose a reason for hiding this comment

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

What were these tests doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These tests were all trying to confirm that R/Python environment and image fields were retained for static (HTML) content. We do not execute HTML content, so these fields are unnecessary. I removed them as inputs and removed the tests as appropriate.

@aronatkins aronatkins merged commit 353f8ba into main May 15, 2024
15 checks passed
@aronatkins aronatkins deleted the aron-tf branch May 15, 2024 17:53
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