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

Add containerisation and step bundles info to the workflow run plan #992

Merged
merged 9 commits into from
Aug 16, 2024

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Aug 9, 2024

Checklist

Version

Requires a MINOR version update

Context

This PR adds with group and step_bundle related information to the bitrise_started event logs in the following format:

{
	"timestamp": "2024-08-12T09:23:40.592317+02:00",
	"type": "event",
	"event_type": "bitrise_started",
	"content": {
		"version": "2.19.0 ((devel))",
		"log_format_version": "1",
		"ci_mode": false,
		"pr_mode": false,
		"debug_mode": false,
		"no_output_timeout_mode": false,
		"secret_filtering_mode": true,
		"secret_envs_filtering_mode": true,
		"with_groups": {
			"ceda3585-4283-4928-84c5-7d1063b58de2": {
				"services": [
					{
						"image": "redis:latest"
					}
				],
				"container": {
					"image": "golang:1.22"
				}
			}
		},
		"step_bundles": {
			"cacf7d9d-1a2b-42f0-b0fe-fce011a72d9f": {
				"id": "test_bundle"
			}
		},
		"execution_plan": [
			{
				"uuid": "66a9dfb9-ba86-4492-98fd-82b6f9d9345a",
				"workflow_id": "container",
				"steps": [
					{
						"uuid": "351657d2-380f-4086-9c57-081c5e08e944",
						"step_id": "script",
						"step_bundle_uuid": "cacf7d9d-1a2b-42f0-b0fe-fce011a72d9f"
					},
					{
						"uuid": "2f4572d7-9d88-4c79-9308-23e692ec0ab7",
						"step_id": "script"
					},
					{
						"uuid": "4216d259-3115-4626-9ca1-bb38493d537f",
						"step_id": "script",
						"with_group_uuid": "ceda3585-4283-4928-84c5-7d1063b58de2"
					}
				]
			}
		]
	}
}

Changes

  • Add with_groups and step_bundles to the WorkflowRunPlan
  • Add with_group_uuid and step_bundle_uuid to the StepExecutionPlan

@godrei godrei marked this pull request as ready for review August 12, 2024 07:29
@@ -9,7 +9,7 @@ require (
github.com/bitrise-io/go-utils v1.0.13
github.com/bitrise-io/go-utils/v2 v2.0.0-alpha.22
github.com/bitrise-io/goinp v0.0.0-20240103152431-054ed78518ef
github.com/bitrise-io/stepman v0.0.0-20240628140527-5e941cdb67a1
github.com/bitrise-io/stepman v0.0.0-20240731124408-5b7e38abd0bf
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pull stepman's current master branch

@godrei godrei merged commit eff4a49 into master Aug 16, 2024
5 checks passed
@godrei godrei deleted the update-json-logs branch August 16, 2024 12:14
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