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

Move environment hook to pkg pt2 #4305

Closed

Conversation

schuellerf
Copy link
Contributor

@schuellerf schuellerf commented Aug 14, 2024

This pull request includes:

  • [✔️] adequate testing for the new functionality or fixed issue
  • [✔️] adequate documentation informing people about the change such as
    • extended make help

functionally this PR does not change anything. It just

  • moves the environment_hook to pkg/splunk_logger so it can be used by image-builder too
  • unify behavior of github action and local test (by calling make from github action)
  • enables testing of pkg/splunk_logger (this was never tested I guess)
  • introduces make coverage-report as this is generated anyway and can be reviewed by humans like this

followup of #4301

@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from 41872bb to c9246c6 Compare August 14, 2024 12:01
@schuellerf
Copy link
Contributor Author

just out of curiosity - is the coverage.txt (of the github actions) used somewhere?

Makefile Show resolved Hide resolved
@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from c9246c6 to 4043360 Compare August 14, 2024 14:51
Makefile Outdated Show resolved Hide resolved
@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from 4043360 to f880773 Compare August 14, 2024 15:32
@achilleas-k
Copy link
Member

just out of curiosity - is the coverage.txt (of the github actions) used somewhere?

We have a coverity action running on a schedule but I don't know if it uses that file or does it's own thing.

@schuellerf schuellerf enabled auto-merge (rebase) August 14, 2024 17:20
@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch 3 times, most recently from f8cca82 to f52300b Compare August 21, 2024 08:19
@schuellerf
Copy link
Contributor Author

Thanks @croissanne for creating the newly split repo
I'll take care of
osbuild/splunk_logger#1
which is a little more than just fixing a line :-/

can we merge this first (as this is waiting a while now)?
I'll immediately fix the new splunk_logger package afterwards (also here and in image-builder)

Makefile Outdated Show resolved Hide resolved
@mvo5
Copy link
Contributor

mvo5 commented Aug 21, 2024

Thanks @croissanne for creating the newly split repo I'll take care of osbuild/splunk_logger#1 which is a little more than just fixing a line :-/

can we merge this first (as this is waiting a while now)? I'll immediately fix the new splunk_logger package afterwards (also here and in image-builder)

Fwiw, I'm fine with merging this first but also curious - what is the extra work (beyond fixing the go.mod)? The workflow or is there more to it?

@schuellerf
Copy link
Contributor Author

Fwiw, I'm fine with merging this first but also curious - what is the extra work (beyond fixing the go.mod)? The workflow or is there more to it?

the things to be done are being collected in osbuild/splunk_logger#1 right now

@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from 3816ed3 to 400fbce Compare August 21, 2024 13:57
auto-merge was automatically disabled August 21, 2024 14:02

Pull Request is not mergeable

Makefile Show resolved Hide resolved
go.mod Show resolved Hide resolved
go.sum Show resolved Hide resolved
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Changes look fine to me. What's the end result WRT waiting for the external pkg to be used?

@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from e25e6b1 to f9d1b51 Compare August 26, 2024 08:38
@schuellerf schuellerf force-pushed the move-environment-hook-to-pkg-pt2 branch from f9d1b51 to 4bad32c Compare August 27, 2024 10:18
@schuellerf
Copy link
Contributor Author

schuellerf commented Aug 27, 2024

Changes look fine to me. What's the end result WRT waiting for the external pkg to be used?

Not sure if I got your question right, but the splunk_logger is also used by image-builder
or did you mean factoring out splunk_logger that's just more clean but can be done before or after this PR

@schuellerf schuellerf closed this Aug 28, 2024
@schuellerf
Copy link
Contributor Author

Obsolete due to #4316

@thozza
Copy link
Member

thozza commented Aug 28, 2024

Changes look fine to me. What's the end result WRT waiting for the external pkg to be used?

Not sure if I got your question right, but the splunk_logger is also used by image-builder or did you mean factoring out splunk_logger that's just more clean but can be done before or after this PR

I meant using the package from its own git repository and not from within this one.

@schuellerf
Copy link
Contributor Author

I meant using the package from its own git repository and not from within this one.

Just makes Makefile, tests etc more clumsy and less obvious to maintain

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.

6 participants