Skip to content

Reduce amount of evergreen config includes #1612

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

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Jul 17, 2024

As per a recent change, we can no longer include more than 35 files in an evergreen config. To work around this, the config generation script now outputs a single file for each template, containing all of the versions instead of separate files for each version.

@alcaeus alcaeus requested a review from GromNaN July 17, 2024 10:59
@alcaeus alcaeus self-assigned this Jul 17, 2024
@@ -4,7 +4,6 @@
# These tasks are used in the build task group "build-php-libmongoc" defined in .evergreen/config/build-task-groups.yml,
# where the "max_hosts" setting must be set to the number of enabled tasks.
# Last but not least, make sure the corresponding test variants are enabled in .evergreen/config/test-variants.yml
tasks:
Copy link
Member Author

Choose a reason for hiding this comment

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

I decided to remove the top-level key in all templates to avoid having to use a yaml library to combine individual config files. It's not optimal, but it works for the time being.

Copy link
Member

Choose a reason for hiding this comment

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

You could also use a regex to remove it. I let you judge what is the less bad for maintenance.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this works fine for the time being - the less I mess with the files the better it is.

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

LGTM. I hear we're going to save on GitHub API calls.

@alcaeus alcaeus merged commit 5ac56a5 into mongodb:v1.19 Jul 17, 2024
70 checks passed
@alcaeus alcaeus deleted the reduce-evg-includes branch July 17, 2024 12:02
alcaeus added a commit that referenced this pull request Jul 17, 2024
* v1.19:
  Reduce amount of evergreen config includes (#1612)
alcaeus added a commit that referenced this pull request Jul 17, 2024
* v1.19:
  Reduce amount of evergreen config includes (#1612)
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.

2 participants