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

Issue 1179 and 1182 #1229

Closed
wants to merge 27 commits into from
Closed

Issue 1179 and 1182 #1229

wants to merge 27 commits into from

Conversation

uweseimet
Copy link
Contributor

@uweseimet uweseimet commented Oct 1, 2023

Besides resolving #1179 and #1182 this PR also resolves several SonarQube issues and idecouples several classes, which also simplifies the unit test setup.

github also lists files as changed that have not been changed at all. This is the correct list:

>git diff --name-only develop
cpp/Makefile
cpp/controllers/abstract_controller.cpp
cpp/controllers/abstract_controller.h
cpp/controllers/controller_manager.cpp
cpp/controllers/controller_manager.h
cpp/controllers/phase_handler.h
cpp/controllers/scsi_controller.cpp
cpp/controllers/scsi_controller.h
cpp/devices/cd_track.h
cpp/devices/cfilesystem.cpp
cpp/devices/cfilesystem.h
cpp/devices/ctapdriver.cpp
cpp/devices/ctapdriver.h
cpp/devices/device.cpp
cpp/devices/device.h
cpp/devices/device_factory.cpp
cpp/devices/device_factory.h
cpp/devices/device_logger.cpp
cpp/devices/device_logger.h
cpp/devices/disk.cpp
cpp/devices/disk.h
cpp/devices/disk_cache.cpp
cpp/devices/disk_cache.h
cpp/devices/disk_track.cpp
cpp/devices/disk_track.h
cpp/devices/host_services.cpp
cpp/devices/host_services.h
cpp/devices/interfaces/byte_writer.h
cpp/devices/mode_page_device.cpp
cpp/devices/mode_page_device.h
cpp/devices/primary_device.cpp
cpp/devices/primary_device.h
cpp/devices/scsi_command_util.cpp
cpp/devices/scsi_command_util.h
cpp/devices/scsi_daynaport.cpp
cpp/devices/scsi_daynaport.h
cpp/devices/scsi_host_bridge.cpp
cpp/devices/scsi_host_bridge.h
cpp/devices/scsi_printer.cpp
cpp/devices/scsi_printer.h
cpp/devices/scsicd.cpp
cpp/devices/scsicd.h
cpp/devices/scsihd.cpp
cpp/devices/scsihd.h
cpp/devices/scsihd_nec.cpp
cpp/devices/scsihd_nec.h
cpp/devices/scsimo.cpp
cpp/devices/scsimo.h
cpp/devices/storage_device.cpp
cpp/devices/storage_device.h
cpp/hal/data_sample.h
cpp/hal/gpiobus.cpp
cpp/hal/gpiobus.h
cpp/hal/gpiobus_bananam2p.cpp
cpp/hal/gpiobus_bananam2p.h
cpp/hal/gpiobus_factory.cpp
cpp/hal/gpiobus_raspberry.cpp
cpp/hal/gpiobus_raspberry.h
cpp/hal/gpiobus_virtual.cpp
cpp/hal/gpiobus_virtual.h
cpp/hal/log.h
cpp/hal/sbc_version.cpp
cpp/hal/sbc_version.h
cpp/hal/sunxi_utils.cpp
cpp/hal/systimer.cpp
cpp/hal/systimer_allwinner.cpp
cpp/hal/systimer_raspberry.cpp
cpp/monitor/sm_core.cpp
cpp/monitor/sm_core.h
cpp/monitor/sm_html_report.cpp
cpp/monitor/sm_json_report.cpp
cpp/monitor/sm_vcd_report.cpp
cpp/piscsi.cpp
cpp/piscsi/command_context.cpp
cpp/piscsi/command_context.h
cpp/piscsi/localizer.cpp
cpp/piscsi/localizer.h
cpp/piscsi/piscsi_core.cpp
cpp/piscsi/piscsi_core.h
cpp/piscsi/piscsi_executor.cpp
cpp/piscsi/piscsi_executor.h
cpp/piscsi/piscsi_image.cpp
cpp/piscsi/piscsi_image.h
cpp/piscsi/piscsi_response.cpp
cpp/piscsi/piscsi_response.h
cpp/piscsi/piscsi_service.cpp
cpp/piscsi/piscsi_service.h
cpp/piscsi_interface.proto
cpp/scsictl/scsictl_commands.cpp
cpp/scsictl/scsictl_commands.h
cpp/scsictl/scsictl_core.cpp
cpp/scsictl/scsictl_display.cpp
cpp/scsictl/scsictl_display.h
cpp/scsictl/scsictl_parser.cpp
cpp/scsictl/scsictl_parser.h
cpp/scsidump.cpp
cpp/scsidump/scsidump_core.cpp
cpp/scsidump/scsidump_core.h
cpp/scsiloop/scsiloop_core.cpp
cpp/scsiloop/scsiloop_cout.cpp
cpp/scsiloop/scsiloop_cout.h
cpp/scsiloop/scsiloop_gpio.cpp
cpp/scsiloop/scsiloop_gpio.h
cpp/scsiloop/scsiloop_timer.cpp
cpp/shared/config.h
cpp/shared/network_util.cpp
cpp/shared/network_util.h
cpp/shared/piscsi_exceptions.h
cpp/shared/piscsi_util.cpp
cpp/shared/piscsi_util.h
cpp/shared/piscsi_version.cpp
cpp/shared/protobuf_serializer.cpp
cpp/shared/protobuf_serializer.h
cpp/shared/protobuf_util.cpp
cpp/shared/protobuf_util.h
cpp/shared/scsi.h
cpp/test/abstract_controller_test.cpp
cpp/test/command_context_test.cpp
cpp/test/controller_manager_test.cpp
cpp/test/ctapdriver_test.cpp
cpp/test/device_factory_test.cpp
cpp/test/device_test.cpp
cpp/test/disk_test.cpp
cpp/test/gpiobus_raspberry_test.cpp
cpp/test/host_services_test.cpp
cpp/test/linux_os_stubs.cpp
cpp/test/mocks.h
cpp/test/mode_page_device_test.cpp
cpp/test/network_util_test.cpp
cpp/test/phase_handler_test.cpp
cpp/test/piscsi_exceptions_test.cpp
cpp/test/piscsi_executor_test.cpp
cpp/test/piscsi_image_test.cpp
cpp/test/piscsi_response_test.cpp
cpp/test/piscsi_service_test.cpp
cpp/test/piscsi_util_test.cpp
cpp/test/primary_device_test.cpp
cpp/test/protobuf_serializer_test.cpp
cpp/test/protobuf_util_test.cpp
cpp/test/scsi_command_util_test.cpp
cpp/test/scsi_controller_test.cpp
cpp/test/scsi_daynaport_test.cpp
cpp/test/scsi_host_bridge_test.cpp
cpp/test/scsi_printer_test.cpp
cpp/test/scsicd_test.cpp
cpp/test/scsictl_commands_test.cpp
cpp/test/scsictl_display_test.cpp
cpp/test/scsihd_nec_test.cpp
cpp/test/scsihd_test.cpp
cpp/test/scsimo_test.cpp
cpp/test/storage_device_test.cpp
cpp/test/test_setup.cpp
cpp/test/test_shared.cpp
cpp/test/test_shared.h
doc/piscsi.1
doc/piscsi_man_page.txt
doc/scsictl.1
doc/scsictl_man_page.txt
docker/README.md
docker/docker-compose.yml
docker/web/Dockerfile
easyinstall.sh

Tony Kuker and others added 27 commits April 22, 2023 19:46
Remove bogus pkg-resources==0.0.0 entry
* Always assign locale in detect_locale()

* Bump version of Debian used in CI builds from from buster to bullseye

* Update code comment

---------

Co-authored-by: nucleogenic <[email protected]>
* Better usage hints in scsimon man page

* In error message, clarify that piscsi needs to be shut down
…n, and always return a status message with the outcome of the check. Issue #1191
Check for predictable network interface names in bridge check
- Bump stylelint and stylelint-config-standard libs to the latest versions (security fixes)
- Remove deprecated stylelint-config-prettier module
- Scan the classic style sheet with stylelint and prettier in the github workflow
- Address stylelint and prettier issues in the classic stylesheet
- Bump prettier to 3.0.0
…f none is found (#1193)

* Dynamically detect an available network i/f, and abort if none is found

* Network i/f fallback for headless mode

* Split piscsi installation and system service configuration
* Update revision for release

* Create sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Update sonarcloud.yml

* Delete sonarcloud.yml

* Update revision number for release

* Remove SonarCloud cache setup as it is now offered by default (#1135)

No need to configure the cache anymore, SonarCloud now has an automatic analysis caching. See https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-cache.

* Revert "Remove SonarCloud cache setup as it is now offered by default (#1135)" (#1144)

This reverts commit 3ad668c.

* Update web.yml

* Update cpp.yml

* Update web.yml

* Update build_code.yml

* Update build_code.yml

* Update cpp.yml

* Update web.yml

---------

Co-authored-by: Tony Kuker <[email protected]>
Co-authored-by: Massimo Paladin <[email protected]>
* fix lint checks in web python

* fix lint checks in common python

* rework to pass tests in docker

* fix css style lint

* fix css style syntax
* Display status of Samba/Netatalk/vsftp in the footer, with links to Webmin module

* Add option to install Webmin and the netatalk2 module
* Fix block size evaluation (#1212)
@uweseimet
Copy link
Contributor Author

@akuker Looks as if the PR analysis still does not work.

@uweseimet
Copy link
Contributor Author

The branch analysis for the same code worked fine.

@uweseimet uweseimet marked this pull request as ready for review October 1, 2023 22:32
@akuker
Copy link
Member

akuker commented Oct 1, 2023

@uweseimet - This is trying to merge directly to main. Could you update to merge to develop?

@akuker
Copy link
Member

akuker commented Oct 1, 2023

The branch analysis for the same code worked fine.

All of your branches are going to need the project key change merged to work.

@uweseimet
Copy link
Contributor Author

@akuker Oops, I forgot to set develop as the reference branch. I will close this PR and create a new one.

@uweseimet uweseimet closed this Oct 2, 2023
@uweseimet uweseimet deleted the issue_1182 branch October 2, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants