-
Notifications
You must be signed in to change notification settings - Fork 8
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
Homebrew packaging #18
Comments
@eunos-1128 thank you for the opportunity to contribute, it is very valuable! Can you clarify what exactly is required to pass?
For all functions not related to the GUI (TUI), separate tests have already been implemented, for example, for loading all files (function
Similarly for other logs in Linux and Windows systems. Will this information be enough? |
Thank you. Since the test is to verify that the executable binary works after it has been built, a command that can test the functional requirements when run with Is there a command in the |
A very strange requirement, because it is extra code when tests are used for such purposes... This is a TUI application and the console output mode is not provided, I have not seen other TUI applications that use this. I can do this in one parameter option (for example, |
I am checking with a PR reviewer to see if just testing Just to add, the lazydocker PR was merged with just the |
Is it possible to implement the This was used for testing in the recent versions of lazydocker's PRs on Homebrew. |
As I can see (looking at the example from For example: containerizationSystemInstalled:
- name: docker
installed: true
version: 26.1.3
- name: podman
... @eunos-1128 what do you think? |
I believe aggregating the installation status and version information of containerization systems (such as Docker and Podman) into a YAML format will be beneficial for audit and operations management, and also meet homebrew test requirements. As you say it isn't kind of configurable stuff, so How about |
I agree that it would be better to choose another option name, and |
Thanks to another kind Github user who added the following code to the PR, it looks like the PR will be merged without require "pty"
PTY.spawn bin/"lazyjournal" do |_r, _w, pid| |
That's great! Anyway, I've already started making this parameter, and it really could be useful, and I'll finish it tomorrow. |
@eunos-1128 once everything is done, I will ask you to add information on installing via brew to the |
I understand. Thank you! For now I'm also adding lazyjournal to conda-forge for installing the package with conda-forge/staged-recipes#29324 (comment) I'll make PRs for homebrew and conda packaging later on. |
@eunos-1128 i also have a question for you, can you leave your contact information (telegram/discord/email)? |
One below is my email address but I don't look at it much because there are too many spam mails. I often check X, so it's good for you to send DMs to me. Otherwise, I use Github everyday for work, so please mention me on any issue. |
@eunos-1128 you will be able to check the results yourself from the source code? Here are the audit results: Linux
system:
os: linux
arch: amd64
systemd:
journald:
- installed: true
journals:
- name: Unit list
count: 572
- name: System journals
count: 31917
- name: User journals
count: 9795
- name: Kernel boot
count: 3
fileSystem:
username: root
files:
- name: System var logs
path: /var/log/
count: 50
- name: Optional package logs
path: /opt/
count: 1
- name: Users home logs
path: /home/
count: 79
- name: Process descriptor logs
path: descriptor
count: 27
containerization:
system:
- name: docker
installed: true
version: 26.1.3, build 26.1.3-0ubuntu1~24.04.1
containers: 17
- name: podman
installed: false
- name: kubernetes
installed: false macOSsystem:
os: darwin
arch: amd64
systemd:
journald:
- installed: false
fileSystem:
username: root
files:
- name: System var logs
path: /var/log/
count: 104
- name: Optional package logs
path: /opt/
count: 33
- name: Users home logs
path: /home/
count: 85
- name: Process descriptor logs
path: descriptor
count: 26
containerization:
system:
- name: docker
installed: false
- name: podman
installed: false
- name: kubernetes
installed: false Windowssystem:
os: windows
arch: amd64
winEvent:
logs:
- count: 149
fileSystem:
systemDisk: C
username: Lifailon
files:
- path: "C:/ProgramData"
count: 53
- path: "C:/Program Files"
count: 80
- path: "C:/Program Files (x86)"
count: 102
- path: "C:/Users/Lifailon/AppData/Roaming"
count: 1244
- path: "C:/Users/Lifailon/AppData/Local"
count: 2522
containerization:
system:
- name: docker
installed: true
version: 27.2.0, build 3ab4256
containers: 2
- name: podman
installed: true
version: 5.3.2
containers: 0
- name: kubernetes
installed: true
version: v1.30.2
pods: 0 |
@Lifailon OK, I will give it a try. |
All output is dynamic and depends on the system you are using. @eunos-1128 can you clarify if this is enough? I need to add a new flag to unit testing (to check it) and also add macOS testing to CI Actions before new release, this will also take some time. |
I ran the command you suggested on my MacBook(x86_64).
What number is “count”? Also, I felt it would be nice to have the date and time of the run. |
In your example, the number of logs that will be displayed on the first tab of 4 in the file system logs window is 81. @eunos-1128 should the word - name: System var logs
path: /var/log/
count: 81
Specify the current time in the system or the time spent performing the audit? Or both? |
I think
I meant by the current time in the system. |
Hi,
Thank you for developing this wonderful software.
I am now putting out a PR for homebrew formulas so that I can install lazyjournal with homebrew.
The reviewer asked me to include the following in the test section. Is there a function or option or something that can fulfill that requirement when this program is run?
Homebrew/homebrew-core#209356 (comment)
Best,
The text was updated successfully, but these errors were encountered: