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: Adjusts release process to run tests against QA before releasing #1812

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

AgustinBettati
Copy link
Member

@AgustinBettati AgustinBettati commented Jan 5, 2024

Description

Link to any related issue(s): CLOUDP-220682

Used a forked repository to test logic of when acceptances test and release is run.

Scenarios that were tested:

  • When providing an invalid input (1.0.0): execution of tests and release is skipped
  • When doing a release (v1.0.0) or a pre release (v1.0.0-pre):
    • with skip value true -> tests are not run and release is made
    • with skip value empty -> tests are run
      • if test fails release job is not run
      • if test are successful release job runs

What has not been tested and will be tested on release?

  • During testing in the forked repository execution of acceptance tests was replaced with a dummy job, so the call to the acceptance test workflow it not tested (was copied from working definition in test-suite.yml#L63.

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contribution guidelines
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals, I defined an isolated PR with a relevant title as it will be used in the auto-generated changelog.

Further comments

- name: Create release tag
uses: rickstaa/[email protected] # will fail if existing tag is present
with:
tag: ${{ inputs.version_number }}
Copy link
Member Author

Choose a reason for hiding this comment

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

as of now tag is not being signed, which is the behaviour we currently have when creating tags for our releases. Will reach out to security team to verify if we can use the gpg signing feature of this action.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you confirm that the action is creating an annotated tag?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes verified that annotated tags were created in the forked repo used for testing, can also be seen in the code https://github.com/rickstaa/action-create-tag/blob/main/entrypoint.sh#L79

@AgustinBettati AgustinBettati marked this pull request as ready for review January 5, 2024 14:14
@AgustinBettati AgustinBettati requested a review from a team as a code owner January 5, 2024 14:14
@andreaangiolillo andreaangiolillo requested a review from a team January 5, 2024 14:33
Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for all the follow ups

@AgustinBettati AgustinBettati merged commit b2b1229 into master Jan 9, 2024
@AgustinBettati AgustinBettati deleted the CLOUDP-220682 branch January 9, 2024 08:50
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