Skip to content

[CDRIVER-5535] Create asset groups in Silk #1619

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 7 commits into from
Jun 6, 2024

Conversation

vector-of-bool
Copy link
Contributor

This changeset includes scripting and EVG tasks to create Silk asset groups for branches in the repository. The EVG task is idempotent: Once the asset group is created for a branch, the task becomes a no-op.

The creation script is parameterized and can be re-used between projects. The EVG task has been grouped under a new "Miscellaneous" build variant for the sole purpose of such one-off CI tasks.

Currently, the EVG task fails as I do not yet have the Silk credentials loaded. This will be fixed when such credentials are obtained and defined for the CI process.

- Add a "Miscellaneous" "variant" to group one-off tasks that don't vary.
- Add a "create-silk-asset-group" task that creates a Silk asset group
  for the current branch if it does not already exist.
@vector-of-bool vector-of-bool requested a review from kevinAlbs May 30, 2024 01:07
Earthfile Outdated
@@ -191,6 +191,37 @@ sbom-generate:
# Save the result back to the host:
SAVE ARTIFACT /s/cyclonedx.sbom.json AS LOCAL etc/cyclonedx.sbom.json

# silk-create-asset-group :
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# silk-create-asset-group :
# create-silk-asset-group :

To match target name.

@vector-of-bool vector-of-bool merged commit c208106 into mongodb:master Jun 6, 2024
46 checks passed
@vector-of-bool vector-of-bool deleted the silk-asset-grp branch June 6, 2024 19:05
vector-of-bool added a commit that referenced this pull request Jun 26, 2024
* Add a script and Earthly target to create a Silk asset group
* Define new EVG tasks:

- Add a "Miscellaneous" "variant" to group one-off tasks that don't vary.
- Add a "create-silk-asset-group" task that creates a Silk asset group
  for the current branch if it does not already exist.

* Ignore a `.secret` file in the repo directory
* Run the asset group creation on all builds
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