Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified atp/CoreTrace-GUI_ATP.xlsx
Binary file not shown.
Binary file modified atp/CoreTrace-GUI_ATP_appendices.zip
Binary file not shown.
29 changes: 5 additions & 24 deletions atp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions atp/appendices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
Expand All @@ -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 |

Expand Down
2 changes: 1 addition & 1 deletion atp/appendices/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion atp/appendices/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
22 changes: 11 additions & 11 deletions atp/scripts/gen_atp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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 = [
Expand All @@ -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)"

Expand All @@ -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.",
Expand Down Expand Up @@ -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.",
Expand All @@ -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).",
Expand Down Expand Up @@ -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).",
Expand Down
11 changes: 11 additions & 0 deletions docs/releases/v6.0.0-beta.4.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading