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

[CAD-691] GitHub actions migration #368

Merged
merged 7 commits into from
Mar 12, 2024
Merged

Conversation

jbropho
Copy link
Collaborator

@jbropho jbropho commented Feb 28, 2024

@fc-infosec-sast
Copy link

fc-infosec-sast commented Feb 28, 2024

✅ SAST Report

No issues found. Good job! 💪

@jbropho jbropho force-pushed the CAD-691-github-actions-migration branch from 34d72a7 to deaed50 Compare February 28, 2024 15:02
@jbropho jbropho changed the title Cad 691 GitHub actions migration [CAD-691] GitHub actions migration Feb 28, 2024
@jbropho jbropho marked this pull request as ready for review February 28, 2024 15:07
@jbropho jbropho requested a review from a team as a code owner February 28, 2024 15:07
Copy link
Contributor

@james-doolan james-doolan left a comment

Choose a reason for hiding this comment

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

Minor comments regarding consistent use of env vars

@@ -42,6 +46,10 @@ Anyone with the appropriate credentials can "cut a release" of jackdaw using the

Steps 2 to 6 is essentially `git tag $version -m "$title\n\n$description" && git push --tags`

#### Snapshot release

Snapshot releases can be created by pushing a tag with the format `publish-snapshot-semver`
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean anyone can publish a snapshot release with any version they want?

Copy link
Collaborator Author

@jbropho jbropho Mar 4, 2024

Choose a reason for hiding this comment

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

Described slightly higher in the README, deploy env is protected, deploy step cannot run without approval from jackdaw or credit-applications team review.

In any case outside contributors don't have write access, PR's are opened via forks.


:git-version
{:status-to-version
(fn [{:keys [tag branch ahead? dirty?] :as git}]
(if (and tag (not ahead?) (not dirty?))
(if (and tag (not ahead?) (not dirty?) (= "master" branch))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be handled with trigger filters in the workflow def?

Copy link
Collaborator Author

@jbropho jbropho Mar 4, 2024

Choose a reason for hiding this comment

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

Added to make more explicit that all non-master builds are marked snapshot; it should be handled already by the current setup, happy to remove it if it adds confusion.

@@ -40,7 +40,7 @@
:key-serde :long
:value-serde :json}))

(def kafka-config {"bootstrap.servers" "localhost:9092"
(def kafka-config {"bootstrap.servers" "kafka:9092"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
(def kafka-config {"bootstrap.servers" "kafka:9092"
(def kafka-config {"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")

Comment on lines 34 to 35
:config {"bootstrap.servers" "kafka:9092"
"application.id" app-id}})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:config {"bootstrap.servers" "kafka:9092"
"application.id" app-id}})
:config (merge kafka-config {"application.id" app-id})})

Comment on lines 238 to 239
{"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"application.id" "test-echo-stream"})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{"bootstrap.servers" (str (utils/bootstrap-servers) ":9092")
"application.id" "test-echo-stream"})
(assoc kafka-config "application.id" "test-echo-stream")

update other cases too

@jbropho jbropho force-pushed the CAD-691-github-actions-migration branch 6 times, most recently from 9ad0d45 to f806698 Compare March 7, 2024 17:19
@jbropho jbropho force-pushed the CAD-691-github-actions-migration branch from f806698 to 88e227c Compare March 7, 2024 17:24
@jbropho jbropho merged commit 3dc4b18 into master Mar 12, 2024
4 of 5 checks passed
@jbropho jbropho deleted the CAD-691-github-actions-migration branch March 12, 2024 15:13
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.

None yet

3 participants