Skip to content

ci(sonar): corregir el patrón de exclusión de la cáscara del plugin de red - #52

Merged
JoaquinDecima merged 1 commit into
mainfrom
ci/corregir-exclusion-network-manager
Nov 30, 2026
Merged

JoaquinDecima merged 1 commit into
mainfrom
ci/corregir-exclusion-network-manager

Conversation

@JoaquinDecima

@JoaquinDecima JoaquinDecima commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Qué cambia

Reemplaza **/tauri-plugin-network-manager/src/lib.rs,**/tauri-plugin-network-manager/src/activate.rs por **/activate.rs en sonar.coverage.exclusions.

Por qué

El patrón que mergeó #51 tenía un prefijo de directorio (tauri-plugin-network-manager/) que en el CI no existe: cada repo se clona en la raíz, así que Sonar ve src/activate.rs, no .../tauri-plugin-network-manager/src/activate.rs. No matcheaba nada y la cobertura del PR del plugin seguía en 68,7 %.

**/activate.rs sí matchea (mismo estilo que **/commands.rs, **/watcher.rs). Medido con la API de Sonar: activate.rs son 37/37 líneas nuevas sin cubrir (cáscara D-Bus pura). Sacándola, el código nuevo queda en 83 % (147/177), sobre el umbral de 80 %. No excluyo src/lib.rs del plugin: no se puede por ruta sin pisar el src/lib.rs de los servicios Rust, y no hace falta.

Desbloquea tauri-plugin-network-manager#17 → vasak-desktop#313.

Cómo se prueba

propio.yml (actionlint/zizmor) y los tests de scripts/ (OK en local).

Summary by CodeRabbit

  • Tests
    • Coverage reporting now includes an additional part of the network manager component. This is an internal reporting change and does not affect app behavior.

…e red

El PR anterior usó `**/tauri-plugin-network-manager/src/activate.rs`, pero
en el CI el repo del plugin se clona en la raíz, así que Sonar ve
`src/activate.rs` y el prefijo nunca matcheaba (la cobertura seguía en
68,7 %). Se reemplaza por `**/activate.rs`, el mismo estilo de nombre que
`**/watcher.rs` o `**/commands.rs` ya excluidos. Deja el src/lib.rs del
plugin adentro del cálculo a propósito: no se puede excluir por ruta sin
pisar el lib.rs de los servicios Rust, y con activate.rs afuera la
cobertura del código nuevo queda en 83 %, sobre el umbral.
@JoaquinDecima JoaquinDecima added the enhancement New feature or request label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The Sonar coverage exclusion list no longer excludes the network manager plugin's lib.rs file. The exclusion for activate.rs remains.

Changes: Sonar coverage exclusions

Layer / File(s) Summary
Update coverage exclusions
.github/workflows/app.yml
The exclusion list removes the pattern for lib.rs and retains the pattern for activate.rs.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

  • Vasak-OS/.github#51: This PR changes a coverage exclusion pattern introduced by PR #51 for the same plugin.

Suggested labels: bug

Merge Risk: Minimal · up to 5c5e3

This updates which file Sonar skips when measuring coverage so the plugin's CI path matches. It does not change application runtime behavior, and no concrete merge-blocking risk remains.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the coverage row,
One file joins the tests below.
The other path stays out of sight,
While carrots crunch beneath moonlight.
The workflow rests, its list now neat.

@JoaquinDecima JoaquinDecima self-assigned this Nov 30, 2026
@JoaquinDecima JoaquinDecima moved this to In Progress in VasakOS Roadmap Nov 30, 2026
@coderabbitai coderabbitai Bot added the bug Something isn't working label Nov 30, 2026
@JoaquinDecima
JoaquinDecima merged commit bf82e5f into main Nov 30, 2026
7 of 8 checks passed
@JoaquinDecima
JoaquinDecima deleted the ci/corregir-exclusion-network-manager branch November 30, 2026 13:31
@github-project-automation github-project-automation Bot moved this from In Progress to Done in VasakOS Roadmap Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant