diff --git a/atp/CoreTrace-GUI_ATP.xlsx b/atp/CoreTrace-GUI_ATP.xlsx index 29aed26..86c2191 100644 Binary files a/atp/CoreTrace-GUI_ATP.xlsx and b/atp/CoreTrace-GUI_ATP.xlsx differ diff --git a/atp/CoreTrace-GUI_ATP_appendices.zip b/atp/CoreTrace-GUI_ATP_appendices.zip index 9e5e615..1558a39 100644 Binary files a/atp/CoreTrace-GUI_ATP_appendices.zip and b/atp/CoreTrace-GUI_ATP_appendices.zip differ diff --git a/atp/README.md b/atp/README.md index 6d1d4ba..e8c4d91 100644 --- a/atp/README.md +++ b/atp/README.md @@ -18,7 +18,7 @@ The workbook is built from `ATP_template.xlsx` and keeps its two tabs: ## Scope -Only **CoreTrace Desktop v6.0.0-beta.3** (the Tauri rewrite) is under test, from +Only **CoreTrace Desktop v6.0.0-beta.4** (the Tauri rewrite) is under test, from its published Linux package. Local analysis uses **ctrace v0.85.0**, installed in the Docker image. `F23` and `F24` (sign-in, cloud analysis) need a CoreTrace account; connected repositories, dashboards and automatic updates are out of @@ -57,27 +57,8 @@ The run used a fresh dataset and a signed-out session. | F22 | FAIL | Ctrl+F left focus in the editor. Typing `buf` edited the source. | | F23–F24 | Account required (expected) | Sign-in waited for external approval. Cloud analysis was disabled while signed out. No job was submitted or billed. | -## Known gaps to close before the next test cycle +## Running F23 and F24 -Found while running the plan against v6.0.0-beta.3 in Docker: - -1. **Folder analysis shows no result** (`F18`). *Nouvelle analyse* reports - "6 fichier(s) analysé(s) sur 6" and "Résultats 0": the merged report filed - SARIF results under a key the interface reads in another shape. Fixed in - `src-tauri/src/analysis.rs` and `desktop/model.ts`; `F18` stays *In progress* - until a release carries the fix. -2. **In-file search does not open** (`F22`). The editor was built without - Monaco's find module. Fixed in `desktop/features/WorkspaceEditor.tsx`; `F22` - stays *In progress* until a release carries the fix. -3. **ctrace v0.74.0 is unreadable.** It writes its own JSON instead of SARIF - ("Format de rapport non reconnu"). The image uses v0.85.0 and - `docs/releases/v6.0.0-beta.3.md` now says so; the text of the published - GitHub release still has to be edited by hand. -4. **No test account for `F23` and `F24`.** They were run with a team member's - own account. Testers need a dedicated CoreTrace account with CTU; put its - access in the `CoreTrace account` row of `gen_atp.py`. A cloud run of the - data set was quoted 4 832 CTU and billed 3 204. - -When a release carries fixes 1 and 2, bump `CORETRACE_VERSION` in -`appendices/docker/Dockerfile` and `build.sh`, re-run `F18` and `F22`, and mark -them *Done*. +Testers sign in with their own Google account. F23 approves the desktop +device code. F24 requires enough CTU to cover the quote displayed before +confirmation. The reference cloud run was quoted at 4,832 CTU and billed 3,204 CTU. diff --git a/atp/appendices/README.md b/atp/appendices/README.md index 0fb25ee..f030765 100644 --- a/atp/appendices/README.md +++ b/atp/appendices/README.md @@ -2,7 +2,7 @@ Everything a tester needs to run the test plan without help from the team. No compilation is required: the tests run against the **published package** of -release **v6.0.0-beta.3**. The interface is in French; the test plan quotes its +release **v6.0.0-beta.4**. The interface is in French; the test plan quotes its labels as displayed. ``` @@ -29,7 +29,7 @@ appendices/ | Item | Link | |---|---| -| Release under test (v6.0.0-beta.3) | https://github.com/CoreTrace/coretrace-gui/releases/tag/v6.0.0-beta.3 | +| Release under test (v6.0.0-beta.4) | https://github.com/CoreTrace/coretrace-gui/releases/tag/v6.0.0-beta.4 | | Analyser installed in the image (ctrace v0.85.0) | https://github.com/CoreTrace/coretrace/releases/tag/v0.85.0 | | Source code | https://github.com/CoreTrace/coretrace-gui | diff --git a/atp/appendices/docker/Dockerfile b/atp/appendices/docker/Dockerfile index 5b7105b..370ae91 100644 --- a/atp/appendices/docker/Dockerfile +++ b/atp/appendices/docker/Dockerfile @@ -43,7 +43,7 @@ RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key \ && rm -rf /var/lib/apt/lists/* # Version under test. Override with --build-arg to test another release. -ARG CORETRACE_VERSION=6.0.0-beta.3 +ARG CORETRACE_VERSION=6.0.0-beta.4 # The .deb declares its own dependencies (WebKitGTK, GTK), so apt resolves them. RUN curl -fL --retry 3 -o /tmp/coretrace.deb \ diff --git a/atp/appendices/docker/build.sh b/atp/appendices/docker/build.sh index 747e799..286a88e 100755 --- a/atp/appendices/docker/build.sh +++ b/atp/appendices/docker/build.sh @@ -3,7 +3,7 @@ # On Apple Silicon the amd64 platform is forced because the published Linux build # is x86-64 only; expect the emulated app to be noticeably slower. set -e -VERSION="${CORETRACE_VERSION:-6.0.0-beta.3}" +VERSION="${CORETRACE_VERSION:-6.0.0-beta.4}" PLATFORM_FLAG="" if [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then PLATFORM_FLAG="--platform linux/amd64" diff --git a/atp/scripts/gen_atp.py b/atp/scripts/gen_atp.py index 36b2cff..e62e424 100644 --- a/atp/scripts/gen_atp.py +++ b/atp/scripts/gen_atp.py @@ -12,7 +12,7 @@ TEMPLATE = sys.argv[1] if len(sys.argv) > 1 else OUT ACCESS = [ - ("Release under test", "https://github.com/CoreTrace/coretrace-gui/releases/tag/v6.0.0-beta.3 (CoreTrace Desktop v6.0.0-beta.3)"), + ("Release under test", "https://github.com/CoreTrace/coretrace-gui/releases/tag/v6.0.0-beta.4 (CoreTrace Desktop v6.0.0-beta.4)"), ("Docker test environment", "appendices/docker/ in the appendices ZIP: run ./build.sh then ./run.sh, then open http://localhost:6080/"), ("Test data set", "appendices/datasets/ in the appendices ZIP (expected results: datasets/MANIFEST.md)"), ("Tester instructions", "appendices/README.md in the appendices ZIP"), @@ -36,8 +36,8 @@ "2 warnings - StackBufferOverflow on 'tab' (size 8) line 10, UninitializedLocalRead line 12"), ("DS07 - unsupported input", "DS07_invalid.txt", "0 result, status 'Terminée avec avertissements', the output quotes 'Unsupported input file type'"), - ("CoreTrace account", "TO BE PROVIDED by the CoreTrace team", - "Needed for F23 and F24 only. A cloud analysis of the data set returns 24 results and is billed about 3 200 CTU."), + ("CoreTrace account", "Use your own Google account to sign in to CoreTrace.", + "Needed for F23 and F24 only. F23 is free. F24 requires enough CTU for the quote shown before launch. The reference run returned 24 results and used 3 204 CTU."), ] GETTING_STARTED = [ @@ -51,7 +51,7 @@ ] CRIT, SEC, UI = "Critical feature", "Secondary function", "User interface" -DONE, WIP = "Done", "In progress" +DONE = "Done" RUN = "2. Click the red 'Analyser' button above the editor, then 'Sur cette machine'\n3. In the dialog 'Analyser ce fichier local ?', click 'Lancer ctrace'\n4. Wait for the 'Analyses' page to show the result (up to 60 s)" @@ -60,13 +60,13 @@ "Bring the test environment up from the published package, with no build step.", "Linux with default Docker UID mapping, macOS or Windows with Docker installed and running, 3 GB of free disk space, an internet connection. On Windows, run the scripts from WSL or Git Bash.", "1. Unzip the appendices archive\n2. cd appendices/docker\n3. Run ./build.sh (about 5 min the first time)\n4. Run ./run.sh\n5. Open http://localhost:6080/ in a browser (it connects on its own)", - "The build ends with 'Image built: coretrace-gui-atp (CoreTrace Desktop 6.0.0-beta.3)'. The browser shows a window titled 'CoreTrace'. Its left menu lists 'Nouvelle analyse', 'Accueil', 'Analyses', 'Dépôts', 'Espace de code' and 'Paramètres'. The home page reads 'Bonjour. Que souhaitez-vous analyser ?' and the bottom-right corner reads 'Aucun dossier ouvert'.", + "The build ends with 'Image built: coretrace-gui-atp (CoreTrace Desktop 6.0.0-beta.4)'. The browser shows a window titled 'CoreTrace'. Its left menu lists 'Nouvelle analyse', 'Accueil', 'Analyses', 'Dépôts', 'Espace de code' and 'Paramètres'. The home page reads 'Bonjour. Que souhaitez-vous analyser ?' and the bottom-right corner reads 'Aucun dossier ouvert'.", DONE), ("F2", "Installed version and licence", SEC, "Check which version is running and under which licence.", "The application is running (F1).", "1. Click 'Paramètres' in the left menu\n2. Scroll to the bottom of the page, to the 'À propos' panel", - "The panel reads 'CoreTrace 6.0.0-beta.3' and 'Distribué sous licence Apache 2.0', and offers a 'Licences open source' button.", + "The panel reads 'CoreTrace 6.0.0-beta.4' and 'Distribué sous licence Apache 2.0', and offers a 'Licences open source' button.", DONE), ("F3", "Open a folder", CRIT, "Load the test data set into the code workspace.", @@ -162,8 +162,8 @@ "Analyse every source file of the open folder in one run.", "ctrace is selected (F9) and the workspace is open.", "1. Click 'Nouvelle analyse' at the top of the left menu\n2. Read the dialog 'Analyser workspace ?'\n3. Click 'Analyser workspace'\n4. Wait for the result (up to 2 min)", - "The dialog names the open folder (/home/tester/workspace). The run reports '6 fichier(s) analysé(s) sur 6' (DS01 to DS06; the .txt and .md files are not source files). The findings of all six files are listed together: 7 results, namely the ones of F10, F12, F14 and F15. Known anomaly in v6.0.0-beta.3: the page shows 'Résultats 0' although the unfolded 'Sortie de ctrace' contains the findings; corrected in the source code after this release. Report what you observe.", - WIP), + "The dialog names the open folder (/home/tester/workspace). The run reports '6 fichier(s) analysé(s) sur 6' (DS01 to DS06; the .txt and .md files are not source files). The findings of all six files are listed together: 7 results, namely the ones of F10, F12, F14 and F15.", + DONE), ("F19", "Sign-in dialog", SEC, "Start the connection to a CoreTrace account with a device code.", "The application is running with an internet connection. No account is needed for this scenario.", @@ -186,8 +186,8 @@ "Find a word in the open file.", "The workspace is open (F3). Same keyboard advice as F21.", "1. Click DS01_stack_overflow.c in the file tree\n2. Click inside the editor\n3. Press Ctrl+F\n4. Type buf", - "A search box opens at the top right of the editor, every occurrence of 'buf' is highlighted and the box shows the number of matches. Known anomaly in v6.0.0-beta.3: no search box opens, although the editor's start page advertises 'Ctrl/Cmd + F : rechercher'; corrected in the source code after this release. Report what you observe.", - WIP), + "A search box opens at the top right of the editor, every occurrence of 'buf' is highlighted and the box shows the number of matches.", + DONE), ("F23", "Sign in to CoreTrace", CRIT, "Connect the application to a CoreTrace account.", "The application is running with an internet connection. A CoreTrace account (see 'CoreTrace account' in the Info & Access tab).", @@ -248,7 +248,7 @@ note = ds_end + 2 info.cell(row=note, column=1, value="Notes").font = Font(bold=True, size=12) NOTES = [ - "Version under test: CoreTrace Desktop v6.0.0-beta.3, installed from its published Linux package. The interface is in French; the plan quotes its labels as displayed.", + "Version under test: CoreTrace Desktop v6.0.0-beta.4, installed from its published Linux package. The interface is in French; the plan quotes its labels as displayed.", "The whole plan runs in the Docker image in appendices/docker, on Linux with default Docker UID mapping, macOS or Windows. No scenario depends on the tester's operating system.", "Local analysis uses ctrace v0.85.0, installed in the image at /opt/coretrace/bin/ctrace, with clang 20. Do not use ctrace v0.74.0: the application cannot read the report that version writes ('Format de rapport non reconnu').", "Only the stack analyser built into ctrace runs. cppcheck, tscancode, ikos and flawfinder are not installed in the image; the application lists them as missing (scenario F9).", diff --git a/docs/releases/v6.0.0-beta.4.md b/docs/releases/v6.0.0-beta.4.md new file mode 100644 index 0000000..1269c81 --- /dev/null +++ b/docs/releases/v6.0.0-beta.4.md @@ -0,0 +1,11 @@ +## What's new in v6.0.0-beta.4 + +- Folder analysis now displays findings from all analysed files. Running the ATP workspace shows seven findings across six source files. +- In the code editor, Ctrl+F (Cmd+F on macOS) opens the search box, highlights matches, and shows the match count. +- The updated acceptance test kit gives each tester a separate Docker image keyed to their user ID and lets the app save edits to the mounted dataset. + +### Downloads + +Choose the Windows x64 installer, universal macOS disk image, or Linux amd64 Debian package or AppImage below. Existing beta.3 installations can use the in-app updater. + +For the acceptance test, download the [workbook](https://github.com/CoreTrace/coretrace-gui/raw/refs/tags/v6.0.0-beta.4/atp/CoreTrace-GUI_ATP.xlsx) and [appendices ZIP](https://github.com/CoreTrace/coretrace-gui/raw/refs/tags/v6.0.0-beta.4/atp/CoreTrace-GUI_ATP_appendices.zip). The ZIP includes the Docker setup and dataset. The image installs the published desktop package and ctrace v0.85.0. diff --git a/package-lock.json b/package-lock.json index 99bd394..e717f2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ctrace-gui", - "version": "6.0.0-beta.3", + "version": "6.0.0-beta.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ctrace-gui", - "version": "6.0.0-beta.3", + "version": "6.0.0-beta.4", "license": "Apache-2.0", "dependencies": { "@monaco-editor/react": "^4.7.0", diff --git a/package.json b/package.json index acdf3d4..140361d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ctrace-gui", - "version": "6.0.0-beta.3", + "version": "6.0.0-beta.4", "private": true, "description": "CoreTrace desktop workspace built with Tauri and React", "license": "Apache-2.0", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 9db628b..9ac4208 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -427,7 +427,7 @@ dependencies = [ [[package]] name = "coretrace-desktop" -version = "6.0.0-beta.3" +version = "6.0.0-beta.4" dependencies = [ "keyring", "open", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ba7703c..a627217 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coretrace-desktop" -version = "6.0.0-beta.3" +version = "6.0.0-beta.4" edition = "2021" rust-version = "1.95" license = "Apache-2.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f4c71e7..1214f8f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "CoreTrace", - "version": "6.0.0-beta.3", + "version": "6.0.0-beta.4", "identifier": "fr.coretrace.desktop", "build": { "beforeDevCommand": "npm run dev",