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

Github composite action for setting up flutter on runner #1710

Merged
merged 22 commits into from
Jun 7, 2024

Conversation

nielsenko
Copy link
Contributor

@nielsenko nielsenko commented Jun 5, 2024

  • Replace subosito/flutter-action@v2 with a puro based setup.
  • Use a composite github action to simplify the setup of flutter (via puro) and melos in the workflow jobs.
  • Add caching to the full flutter setup, including the pub-cache, flutter, vm-engine, the lots.
  • Move pub-cache to D: drive (same as $GITHUB_WORKSPACE) for IO speed.

Currently caching is disabled on windows, but this PR is still faster wrt. to flutter setup on windows, than what we currently use. However, it is mostly for the simplifications we should consider this. Overall the setup steps in our jobs does n't contribute a lot to the full runtime.

Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9379428366

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9379691723

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch 2 times, most recently from d04f88f to 626d404 Compare June 5, 2024 11:35
Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9383223384

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch 4 times, most recently from ffb1b12 to e9ce82f Compare June 5, 2024 12:01
Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9383681097

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch 2 times, most recently from 86a5743 to 5b49bd5 Compare June 5, 2024 12:43
Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9384312507

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build 9385985556

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

# Saving on feature branches will only benefit reruns, so we don't bother.
# Feature branches inherit the cache from the main branch anyway.
# This saves on cache storage.
if: github.ref != 'refs/heads/main' && steps.restore.outputs.cache-hit != 'true'
Copy link
Member

Choose a reason for hiding this comment

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

Should this be github.ref == 'refs/heads/main'? Also, we seem to be only be storing the cache if we don't have a cache hit, but then we use the cache primary key as input to the save action, which seems odd.

Copy link
Contributor Author

@nielsenko nielsenko Jun 6, 2024

Choose a reason for hiding this comment

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

@nirinchev You are a bit early 😊 . Yes it should be ==.. the != is just for debugging. I'm hoping to have pingbird/puro#87 resolved first.

You cannot update a cache in github actions, only write a new one. So if you have an exact hit, trying save on the same key would fail. The primary key is the key we tried to lookup, and where we will store the updated cache, if either none existed, or the one matched pertained to a stale set of pubspec.yaml files, and hence was only a partial match.

Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9400014073

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9304884360: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch from 544c233 to a12009e Compare June 6, 2024 18:22
Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9405930441

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9404164866: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9406859191

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9404164866: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9407048257

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9404164866: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9407048257

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.992%

Totals Coverage Status
Change from base Build 9404164866: 0.0%
Covered Lines: 5905
Relevant Lines: 6788

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch from 140bba5 to 05bc8f3 Compare June 6, 2024 21:04
Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9407808197

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.797%

Totals Coverage Status
Change from base Build 9407730144: 0.0%
Covered Lines: 5943
Relevant Lines: 6847

💛 - Coveralls

Copy link

coveralls-official bot commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9408181155

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.797%

Totals Coverage Status
Change from base Build 9407730144: 0.0%
Covered Lines: 5943
Relevant Lines: 6847

💛 - Coveralls

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch from 5929bfa to 4dcad23 Compare June 7, 2024 08:19
@nielsenko nielsenko marked this pull request as ready for review June 7, 2024 08:31
@nielsenko nielsenko requested a review from nirinchev June 7, 2024 08:40
Copy link

coveralls-official bot commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9414059395

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.797%

Totals Coverage Status
Change from base Build 9413903645: 0.0%
Covered Lines: 5943
Relevant Lines: 6847

💛 - Coveralls

@nielsenko
Copy link
Contributor Author

@nirinchev I think I will accept that caching is simply disabled on windows for now. So I have opened the PR for review.

@nielsenko nielsenko force-pushed the kn/setup-runner-ci-action branch from c46ae7e to 953e761 Compare June 7, 2024 08:59
Copy link

coveralls-official bot commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9414806581

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 86.797%

Totals Coverage Status
Change from base Build 9414399757: 0.0%
Covered Lines: 5943
Relevant Lines: 6847

💛 - Coveralls

@nielsenko nielsenko merged commit 9eabca2 into main Jun 7, 2024
54 of 57 checks passed
@nielsenko nielsenko deleted the kn/setup-runner-ci-action branch June 7, 2024 12:26
nirinchev added a commit that referenced this pull request Jun 12, 2024
* main:
  Add vNext Changelog header (#1717)
  [Release 3.0.0] (#1716)
  libraryVersion moved to realm_libary.dart (take 2)
  libraryVersion moved to realm_libary.dart
  Update CHANGELOG (#1715)
  Github composite action for setting up flutter on runner (#1710)
  RDART-866: kn/decimal128 web support (#1713)
  Reduce expected gain of memEquals for test stability
  Refresh after awaiting download to stabilize tests
  RDART-866: Minimal web support (#1699)
  RDART-1052: Update realm-core to v14.9.0 (#1704)
  RDART-1020: Fix writeAsync behaviour (#1666)
  RDART-999: Fix flutter test dlopen (#1623)
  RDART-1045: Expose setrlimit ios (#1700)
  RDART-962: Use xcode 15.4 (#1548)
  RDART-1039: Drop catalyst support. Flutter doesn't support it (#1696)

# Conflicts:
#	packages/realm_dart/src/realm-core
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants