Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tractusx-dev] Proposal: GitHub release automation via Release Please Action
  • From: <sebastian.bezold@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 4 Dec 2023 08:58:59 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mercedes-benz.com; dmarc=pass action=none header.from=mercedes-benz.com; dkim=pass header.d=mercedes-benz.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Sd6dJQgRso/WIyXtnkwfP86EtLJFhLyWJLP/XJmuXiM=; b=TWORiCf+strlBiKad3LcBMxLoxLNZD5PtaJC2etKw1I5fligBMVMCmAgJ+TTiuYOprDWxUCSlH/zqz3Eqp4pj5v4BJQS+u28QB9R0HuFhAdWzd6hFdaltrYC8hASD0V3+GcswyXlthOoptbK+os+JKQTiN5+Ks8KuDdSXkvcZv4+ijyNCq7HgZgh97ekq6j++PXMJz51UmJrOdqvQ/Ita+UK/svEiPnv6tVAvOCuaw9t9dZfoFTZ/0zHbEYHnAuTjCXDdBZb1ixwAB9dAMK0c4ftTZlpkNok6A5j9m1tajeMRGAxLJRlyoioqS5ff/12sTk1XxWqBvT5Dq7a0kvSPw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UcT3W0D3mwISV5y8A0OlN1q9guCHCQczxKFXPxytGhOh3gu8cqJf37fbjouhEYPt5wTzWvQyLyP5MGNd4kgCZc4RldPESKrUsjQw/WlLviCRkcrU+aGDXibXYE/nmGkktqH5VNAcrQN3I7mPbYxnj/7wN7nRdEc5iFybYrNYRykfvlK1CE/xlyisRjpi5zvFPCIWund7mRpXP+INddJuDBP4oKtfTCDljlgPiWDK2yTTKBGL8RzArC0CkNpIrCsOyeCM1xe6DAVCE0dShqYKvakquEUlxtlycdVmUI7HjbzbWnMJ5BR+gIObC+aav3qK8fCjwQfTwmvIrNVDM6dcCg==
  • Delivered-to: tractusx-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tractusx-dev/>
  • List-help: <mailto:tractusx-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tractusx-dev>, <mailto:tractusx-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tractusx-dev>, <mailto:tractusx-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_Enabled=true; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_Name=Internal; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_SiteId=9652d7c2-1ccf-4940-8151-4a92bd474ed0; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_ContentBits=0; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_Method=Standard; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_SetDate=2023-12-04T08:24:07Z; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_Enabled=true; MSIP_Label_924dbb1d-991d-4bbd-aad5-33bac1d8ffaf_ActionId=d80842d4-54ed-4aad-bf74-f58e764ccb5a;
  • Thread-index: AQHaJpAf5YxMHEJ6aEq6wBLmY9SxGQ==
  • Thread-topic: Proposal: GitHub release automation via Release Please Action

Hi all,

 

the ones of you, who joined the last office hours already know, that I created a playground repository to play with the release-please-action.

I started playing with release please, because of personal experience and learnings from our release and quality gate phases in Tractus-X.

We do have different approaches, when it comes to releases and we also still have teams, without active committers as team members.

 

I invite you all to have a look at that playground repo (https://github.com/catenax-ng/release-automation-playground) and invite the consortia team to directly work on it.

Take your chance and create some example commits / PRs to see how that works and form your own opinion, if that workflow could improve your quality of live in eclipse-tractusx. (You can ping the System Team in case you have questions)

 

Short recap on what the release-please action is doing:

 

  • It is relying on conventional commits in your git history
  • Every time you push commits, the release-please-action prepares a “release PR”,
    • It will maintain a CHANGELOG.md with your messages from the conventional commits
    • It creates separate sections for fixes / features etc. automatically
    • It includes “customer facing” commits. chore: or refactor: are ignored for example
    • It automatically increments the semantic version correctly, based on your conventional commits
  • You can actively decide, when you want to create a release, by merging the already prepared PR
  • The release-please-action will then create the correct git tag for your new version
  • The release-please-action will create a GitHub release stating the changes since last release
  • You can react on outputs of release-please to further automate the release (see example. Compiling .md docs to PDF and attach to GitHub release as artifact https://github.com/catenax-ng/release-automation-playground/blob/main/.github/workflows/release.yaml#L24-L36)

 

Observations from recent experiments:

 

  • Release please recommends squash merge
    • We already know, that we have to be careful with this in regards to copyright headers and so on
    • Squashing will lead to only one entry in the CHANGELOG.md, regardless of the number of conventional commits in the originating branch
    • Potential loss of info in CHANGELOG can be mitigated by creating small PRs for every single fix or feature. This is anyway a good practice
  • The CHANGELOG format is slightly different to https://keepachangelog.com/en/1.1.0/, which we currently follow. But only in formatting, not in content or semantics

 

 

Looking forward to your feedback and test-commits!

 

Best regards

Sebastian

 

 

Mit freundlichen Grüßen / Kind regards

 

Sebastian Bezold

Software Engineer

 

Mercedes-Benz Tech Innovation GmbH (ehemals/formerly Daimler TSS GmbH)

Wilhelm-Runge-Straße 11

89081 Ulm/Germany

 

Sebastian.Bezold@xxxxxxxxxxxxxxxxx

 

www.mercedes-benz-techinnovation.com

 

signature_133997463signature_1247880832 signature_1524038276 signature_1427734073 signature_484701841 signature_2717113326 signature_2445064395 

 

Mercedes-Benz Tech Innovation GmbH

Sitz und Registergericht/Domicile and Register Court: Ulm, HRB-Nr./Commercial Register No.: 3844

Geschäftsführung/Management: Daniel Geisel (Vorsitzender/Chairperson), Isabelle Krautwald

 


If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.


Back to the top