Commit Graph

40 Commits

Author SHA1 Message Date
dependabot[bot]
52e4a92aec
Bump black from 22.8.0 to 24.3.0 in /python/web (#1444)
* Bump black from 22.8.0 to 24.3.0 in /python/web

Bumps [black](https://github.com/psf/black) from 22.8.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.8.0...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Github CI: Backend web test runner use python 3.9.19

* Reformat python sources with black

* Docker: Bump to python 3.9-slim image for pytest

* Bump pytest version to 8.1.1

* Bump more library versions, and freeze them

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Markstedt <daniel@mindani.net>
2024-03-22 00:19:13 -07:00
Daniel Markstedt
818addb0e0
CI workflow: Build unit tests in debug mode (#1417)
* Run CI jobs on push events only when merged to develop or main

* Build unit tests with debug flags
2024-01-18 13:38:55 +09:00
Uwe Seimet
7fa9abe5a3
Remove fullspec/standard sub-folder (#1324)
* Remove fullspec/standard sub-folder
2023-11-14 15:51:36 +01:00
Uwe Seimet
5542fa9e7c
Re-add CONNECT_TYPE_CONNECT_TYPE_AIBOM and CONNECT_TYPE_GAMERNIUM (#1315) (#1317)
* Re-add CONNECT_TYPE_CONNECT_TYPE_AIBOM and CONNECT_TYPE_GAMERNIUM
2023-11-08 13:27:49 +01:00
Daniel Markstedt
0a138eb1be Add back branch rule that fell off 2023-11-03 21:40:48 +09:00
Daniel Markstedt
cf5421d1f5 Move branches rule from push trigger to PR trigger 2023-11-03 21:37:13 +09:00
Daniel Markstedt
b69c039a0c
Restore workflow events for pushs to paths (#1289) 2023-11-03 04:28:53 -07:00
Daniel Markstedt
d1a080b7d0 Remove workflow events that used the wrong syntax. Fall back to the default: opened, synchronize, and reopened 2023-11-03 16:54:39 +09:00
Daniel Markstedt
063e8ed32b
Static analysis fixes for Python codebase (#1277)
* Don't log names of internal symbols that can be used for attacks

* Add integrity check to dropzone.js library

* Better a11y of web form labels

* Safer handling of file download paths

* Don't invert boolean check

* Make backend auth check a flask abort

* Clean up indentation to remove unwanted tabs

* Run workflow either on PR events, or branch pushes, not both
2023-11-01 06:28:53 -07:00
Daniel Markstedt
37b9110c99 When Python code changes, build C++ and run static analysis 2023-11-01 21:55:51 +09:00
Uwe Seimet
43088ab3bc
Remove non-working Banana Pi code (#1252)
* Remove non-working Banana Pi code

* Remove SonarQube suppressions which can be resolved by a code update

* Update device detection
2023-10-22 17:29:26 +02:00
Tony Kuker
10f59afbae
Update Sonar Project Key (#1230) 2023-10-02 09:06:51 +02:00
Tony Kuker
84c20c4f29
Update Sonarcloud version (#1225) 2023-10-01 16:41:53 -05:00
Tony Kuker
74eef6f9cc
Enable actions on pull request (#1209)
* 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 3ad668cfd1.

* 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 <akuker@gmail.com>
Co-authored-by: Massimo Paladin <massimo.paladin@gmail.com>
2023-09-02 18:36:45 -05:00
Daniel Markstedt
d3317e9702
Bump stylelint to 15.10.2 and remove deprecated module (#1189)
- 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
2023-07-28 22:53:12 -07:00
Daniel Markstedt
1a5f185183
Remove SonarCloud cache setup as it is now offered by default (#1135) (#1143)
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.

Co-authored-by: Massimo Paladin <massimo.paladin@gmail.com>
2023-04-09 19:29:03 -05:00
Daniel Markstedt
2354b62f43
Introduce FTP server option; sundry bug fixes (#1028)
* Add script to install ftp server

* Grep only the first ip address to avoid capturing the docker ip address

* Consistently use --assume-yes and --no-install-recommends with apt-get

* Capture corner case where both rascsi and piscsi groups exist

* Add CI/CD dependency of easyinstall.sh

* Update the run choices
2022-12-09 21:00:31 -08:00
Daniel Markstedt
52c2aa474f
Rebrand project to PiSCSI (#1016)
* Rebrand project to PiSCSI
- rascsi ->piscsi
- rasctl -> scsictl
- rasdump -> scsidump
- ras* -> piscsi* (rasutil -> piscsi_util, etc.)

* Refined the formatting and wording of the app startup banner
* Kept some references to rascsi and rasctl where backwards compatibility is concerned
* Point to the new github repo URL

Co-authored-by: nucleogenic <nr@nucleogenic.com>
Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
2022-12-05 09:58:23 -08:00
nucleogenic
88ff542aeb
Run web API test suite in GitHub Actions (#1009)
- Fixed ignore patterns in .dockerignore
- Added healthchecks to backend and web containers
- Reduced Docker image sizes
- Removed RaSCSI references in various areas (e.g. rascsi -> backend)
- Added compilation-only step to easyinstall.sh
- Moved apt package lists to variables
- Revert to triggering GitHub Actions runs on push
- Updated web/frontend_checks workflow to run black and flake8 against all Python sources
- Capture log files from backend/web containers
- Fix None to float conversion bug when user agent is absent or unrecognised
2022-12-04 14:31:57 +00:00
akuker
eca8145311
Add debug build to github workflows #1012 (#1015)
#1012 Add debug build and gamernium/aibom builds
2022-12-03 22:40:19 -06:00
nucleogenic
aa3e36d311
Revert to triggering C++ GHA workflows on push (#1003) 2022-11-22 15:42:02 +00:00
nucleogenic
8e6be9856e
Run all workflows against changes to the develop branch (#995) 2022-11-18 16:41:13 +00:00
nucleogenic
163cb5a10e
Add GitHub Actions for web UI, fix C++ unit test job, enable SonarCloud cache, introduce parallel execution where possible (#974) 2022-11-18 13:58:26 +00:00
Uwe Seimet
1c0179e7e3
rasdump and monitor updates, made rasdump work, improved bus abstraction (#973)
* Moved rasdump and monitor to sub-folders, cleaned up code

* Fixes rasdump issues and added additional features like device type check, LUN support and configurable buffer size
2022-11-09 08:40:26 +01:00
Daniel Markstedt
08194af424
Move C++ code into cpp/ dir (#941)
- Moved C++ code to cpp/ from src/raspberrypi
- Related updates to Makefile, easyinstall.sh, and the github build rules
- Removed the native X68k C code in src/x68k from the repo
2022-10-25 12:59:30 -07:00
Uwe Seimet
efbfb54d26
More unit tests, replacement of raw pointers and C arrays, separation of concerns (#878)
* Added unit tests

* Fixed SonarCloud issues

* Updated error handling

* Updated deletion of controllers

* Image folder handling cleanup

* Fixed clang warning

* Removed duplicate code

* Reduced code complexity

* Updated array handling

* Initialize device with ID and LUN

* Use smart pointers

* Updated memory management

* Logging updates

* Extracted methods

* Split scsi.h
2022-10-04 17:23:42 +02:00
Uwe Seimet
f0c36fba77
SonarCloud coverage setup, fixed numerous SonarCloud issues (#840)
* SonarCloud coverage setup, fixed numerous SonarCloud issues

* Code cleanup
2022-09-10 07:59:41 +02:00
akuker
34242a29ba
Added workflow configurations and README updates (#832)
* automated test try 1

* filter branches

* filter branches

* filter branches

* filter branches

* filter branches

* Configured build and test CI workflows

* enable for all branches

* Update README.md

* Update README.md

Co-authored-by: Tony Kuker <akuker@gmail.com>
2022-09-06 08:17:33 +02:00
akuker
2cc9efc1a0
Disable the rpi build for develop and master (#330) 2021-10-14 13:20:57 -07:00
akuker
95607cd603
Github action to create a raspberry pi image (#302)
Co-authored-by: Tony Kuker <akuker@gmail.com>
2021-10-06 13:42:52 -05:00
akuker
1118c344cc
Issue #7 - implement a scsi monitor function for RaSCSI to log SCSI traffic (#46)
* #7 Re-merge scsimon functionality with latest master. The old scsimon branch was waaaaay too out of date

* #7 Re-merge scsimon functionality with latest master. The old scsimon branch was waaaaay too out of date

* Added libspdlog-dev as a required package

* Cleanup from master re-base

* Updated to use GCC version 8, to match the raspberry pi

Co-authored-by: akuker <akuker@gmail.com>
2020-10-19 07:31:06 -05:00
akuker
bb379b8274
Workflow integration (#29)
* Updated makefile to only rebuild changed files. Also generates dependency listings to check for modified header files

* Updated workflow to archive the generated binaries and build fullspec and standard versions of the app

* Updated to run workflow on all branches

* Create tar file to retain file permissions

* Fix archive path

* Fix typo

* Remove unnecessary git ignore

* Added reference to issue that drives the need for nested compressed files.

Co-authored-by: akuker <akuker@gmail.com>
2020-09-03 19:39:10 -05:00
akuker
2338b9b791 Updated makefile to cross-compile and updated github workflow to install tools 2020-08-27 23:16:23 -05:00
akuker
4bb539ed72
Update c-cpp.yml
Disable buildroot image. its not ready for use yet, and takes forever.
2020-08-07 12:56:05 -05:00
akuker
8eb8273141
Update c-cpp.yml 2020-08-06 15:52:38 -05:00
akuker
ebe7678c55
Update c-cpp.yml 2020-08-06 15:49:39 -05:00
akuker
61fff367b6
Update c-cpp.yml 2020-08-06 12:31:50 -05:00
akuker
7c46ccf66c
Update c-cpp.yml 2020-08-06 08:58:27 -05:00
akuker
3349794633
Update c-cpp.yml 2020-08-06 08:56:07 -05:00
akuker
4def4f3647
Create c-cpp.yml 2020-08-06 08:54:53 -05:00