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

chore: fix specs run condition #488

Merged
merged 3 commits into from
May 10, 2022
Merged

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

As observed in #487, the specs are not running while changes are definitely here.

This PR fixes the run conditions of the specs and clients jobs:

  • specs:
    • This seems to should always run, cache is still computed.
  • clients:
    • Prevent multiple run output set per language
    • Better scope of the generators changes
    • Rename JS_ variables to match actual language name
    • Remove hardcoded MATRIX_DEPENDENCIES definition to make it more dynamic

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team May 10, 2022 13:21
@shortcuts shortcuts self-assigned this May 10, 2022
@shortcuts shortcuts requested review from eunjae-lee and millotp and removed request for a team May 10, 2022 13:21
@netlify
Copy link

netlify bot commented May 10, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 3b7b9cd
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/627a71802c4c2900095d868c

@algolia-bot
Copy link
Collaborator

algolia-bot commented May 10, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

Nice !

@@ -135,12 +135,12 @@ outputs:
RUN_CTS:
description: Determine if the `cts` jobs should run
value: ${{
steps.spec-matrix.outputs.RUN_SPECS ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is RUN_SPECS defined ?

Copy link
Member Author

Choose a reason for hiding this comment

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

In the specs matrix step Compute specs matrix

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok so it's always true, I think you can remove it

Copy link
Collaborator

Choose a reason for hiding this comment

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

you don't want to remove it ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah I thought you were talking about the RUN_CTS, which would always be true

Copy link
Member Author

Choose a reason for hiding this comment

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

do you see anything else to remove here? 4a529f5

Copy link
Member Author

@shortcuts shortcuts May 10, 2022

Choose a reason for hiding this comment

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

🤦🏼

3b7b9cd

Copy link
Collaborator

Choose a reason for hiding this comment

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

RUN_CTS is always true now also, we lost the ability to run just the CTS without generation the client but's that's fine, it's fast

scripts/ci/githubActions/setRunVariables.ts Outdated Show resolved Hide resolved
scripts/ci/githubActions/setRunVariables.ts Outdated Show resolved Hide resolved
@shortcuts shortcuts requested a review from millotp May 10, 2022 13:52
@shortcuts shortcuts enabled auto-merge (squash) May 10, 2022 13:54
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

Looking good ! It's already a big simplification :)

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.

None yet

3 participants