Skip to content
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

Support Async Lifecycles #214

Merged
merged 10 commits into from
May 24, 2024
Merged

Support Async Lifecycles #214

merged 10 commits into from
May 24, 2024

Conversation

0xTim
Copy link
Member

@0xTim 0xTim commented May 15, 2024

These changes are now available in 4.11.0

Support Vapor's async LifecycleHandler functions. This allows users to avoid calling .wait() when shutting down their Vapor apps, which can cause issues, for example, with trying to install a new concurrency executor.

This also updates the supported Swift version to 5.8

@0xTim 0xTim added the semver-minor Contains new APIs label May 15, 2024
@0xTim 0xTim requested a review from gwynne as a code owner May 15, 2024 15:20
Copy link

codecov bot commented May 15, 2024

Codecov Report

Attention: Patch coverage is 48.00000% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 52.88%. Comparing base (9e42dea) to head (13da97b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #214      +/-   ##
==========================================
- Coverage   55.58%   52.88%   -2.71%     
==========================================
  Files          11       11              
  Lines         412      399      -13     
==========================================
- Hits          229      211      -18     
- Misses        183      188       +5     
Files Coverage Δ
Sources/Redis/Application.Redis+PubSub.swift 0.00% <ø> (ø)
Sources/Redis/Redis+Sessions.swift 86.84% <ø> (ø)
Sources/Redis/RedisConfiguration.swift 92.30% <ø> (-0.34%) ⬇️
Sources/Redis/RedisID.swift 62.50% <ø> (ø)
Sources/Redis/Redis+Cache.swift 71.87% <85.71%> (-3.99%) ⬇️
Sources/Redis/RedisStorage.swift 60.81% <41.86%> (-13.88%) ⬇️

... and 2 files with indirect coverage changes

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

One CI nit, otherwise looks ok

Comment on lines 30 to 49
gh-codeql:
if: ${{ !(github.event.pull_request.draft || false) }}
runs-on: ubuntu-latest
permissions: { actions: write, contents: read, security-events: write }
timeout-minutes: 30
steps:
- name: Install latest Swift toolchain
uses: vapor/[email protected]
with: { toolchain: latest }
- name: Check out code
uses: actions/checkout@v4
- name: Fix Git configuration
run: 'git config --global --add safe.directory "${GITHUB_WORKSPACE}"'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with: { languages: swift }
- name: Perform build
run: swift build
- name: Run CodeQL analyze
uses: github/codeql-action/analyze@v3
Copy link
Member

Choose a reason for hiding this comment

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

CodeQL's still broken, pull this back out

@0xTim 0xTim merged commit 383ed57 into main May 24, 2024
10 of 11 checks passed
@0xTim 0xTim deleted the async-lifecycle branch May 24, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants