Skip to content

Conversation

@nealrichardson
Copy link
Contributor

@nealrichardson nealrichardson commented Dec 5, 2025

Intent

Relates to #649. Turns out there already were tests that would push to a Connect server, if you had CONNECT_SERVER and CONNECT_API_KEY set in the environment. Perfect for with-connect.

Also bumps some versions and adds python 3.13 to the matrices. And mocks out in the test suite the shinyapps.io thing that pops open a browser after deploying, which is annoying when running the tests.

Approach

Edit some yaml. Also run it locally.

Added a skip for a test for uploading an R app using a manifest because the manifest specifies an old version of R that's not found in our docker images. This should probably get updated at some point, but I don't think that needs to block progress here.

A couple of test fixtures are updated to have a .python-version version range set so they can successfully deploy against a Connect server in docker that is not guaranteed to match what is in the local environment. That feature was only added in Connect 2025.03.0, so those test are also skipped on older Connect.

Automated Tests

So much.

Directions for Reviewers

See that the new stuff that runs.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.
  • I have run the rsconnect-python-tests-at-night workflow in Connect against this feature branch.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-12-08 15:58 UTC

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5086 3849 76% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: d622e1d by action🐍

Comment on lines +145 to +146
- "release" # special value that always points to the latest Connect release
- "2025.09.0" # jammy
Copy link
Contributor

Choose a reason for hiding this comment

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

missing 2025.10.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intentionally so. I only have it testing every 6 months, same as on connectapi. I don't think it's worth testing every single release in there.

- "2022.10.0" # bionic
name: Integration tests against Connect ${{ matrix.version }}
env:
python-version: 3.13
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe worth checking the last 2 or 3 versions of python here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have a separate matrix that tests across python versions. I'm not sure we need python versions x Connect versions here, these are just testing that we haven't done anything that breaks the Connect API contract.

os.environ["CONNECT_SERVER"] = original_server_value

# noinspection SpellCheckingInspection
@pytest.mark.skip(reason="Skipping R manifest test (requires R 3.5, docker containers have moved on).")
Copy link
Contributor

Choose a reason for hiding this comment

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

can this test just be removed?

Copy link
Contributor Author

@nealrichardson nealrichardson Dec 8, 2025

Choose a reason for hiding this comment

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

Fixed or deleted, yeah. I made #741 to look into that.

Copy link
Contributor

@mconflitti-pbc mconflitti-pbc left a comment

Choose a reason for hiding this comment

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

couple comments/suggestions but looks good!

@nealrichardson nealrichardson merged commit f7459cb into main Dec 8, 2025
22 checks passed
@nealrichardson nealrichardson deleted the integration-testing branch December 8, 2025 15:58
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.

3 participants