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

Use pkl to generate gha workflows #3603

Merged
merged 41 commits into from
Jun 3, 2024
Merged

Use pkl to generate gha workflows #3603

merged 41 commits into from
Jun 3, 2024

Conversation

nirinchev
Copy link
Member

No description provided.

Copy link

coveralls-official bot commented May 13, 2024

Pull Request Test Coverage Report for Build 9199382207

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.
  • 38 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.3%) to 80.932%

Files with Coverage Reduction New Missed Lines %
Realm/Realm/Sync/App.cs 9 78.45%
Realm/Realm/Handles/AppHandle.EmailPassword.cs 29 33.82%
Totals Coverage Status
Change from base Build 9182120931: -0.3%
Covered Lines: 6793
Relevant Lines: 8261

💛 - Coveralls

@nirinchev nirinchev added no-changelog Used to skip the changelog check no-jira-ticket Skip checking the PR title for Jira reference labels May 22, 2024
@nirinchev nirinchev marked this pull request as ready for review May 23, 2024 14:47
@nirinchev nirinchev requested a review from papafe May 23, 2024 14:47
@@ -1125,7 +1125,7 @@ private async Task<ContainerInfo> WaitForContainer(string containerId, int maxRe
await Task.Delay(2000);
}

throw new Exception($"Container with id={containerId} was not found or ready after {maxRetries} retrues");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why aren't we keeping maxRetries here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we're actually decrementing maxRetries, so if we get here, maxRetries will always be 0.

Copy link
Contributor

Choose a reason for hiding this comment

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

So, as we said, maybe it makes sense to save the original maxRetries value ;)


## Building the workflows

```bash
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably put this in a script

+ uwpArchs.map((arch) -> "windows-uwp-\(arch)")
+ applePlatformTargets((platform, target) -> "\(platform)-\(target)")

const defaultEnv: Mapping<String, String | Boolean> = new {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is having String | Boolean here only for future-proofing?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's matching the type of env.

.github/pkl-workflows/helpers/Lint.pkl Show resolved Hide resolved
if-no-files-found: error
- if: matrix.os == 'ubuntu'
run: git clean -fdx
strategy:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way of putting this before all the other steps as it was before? I thought this was missing at a first glance

/// Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.
///
/// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#gollum
class Gollum extends Trigger
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah 🤷‍♂️

Copy link
Contributor

@papafe papafe left a comment

Choose a reason for hiding this comment

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

I have given a look around and it mostly made sense, even though it's a dense PR.
I think I'm just a little bit torn on the fact that we know have fewer but huge workflows instead of having them split in smaller ones. Hopefully with pkl it should be easier to manage those though

Copy link
Contributor

@papafe papafe left a comment

Choose a reason for hiding this comment

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

I have given a look around and it mostly made sense, even though it's a dense PR.
I think I'm just a little bit torn on the fact that we know have fewer but huge workflows instead of having them split in smaller ones. Hopefully with pkl it should be easier to manage those though

@nirinchev nirinchev merged commit 5b26d47 into main Jun 3, 2024
63 of 64 checks passed
@nirinchev nirinchev deleted the ni/pkl branch June 3, 2024 12:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog Used to skip the changelog check no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants