Skip to content

ci: normalise scan job name#823

Merged
gilescope merged 4 commits into
mainfrom
giles-fix-scan-action-pin
Mar 11, 2026
Merged

ci: normalise scan job name#823
gilescope merged 4 commits into
mainfrom
giles-fix-scan-action-pin

Conversation

@gilescope

@gilescope gilescope commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Scan job being called is confusing. Rename jobname to scan.
#823

Signed-off-by: Giles Cope <gilescope@gmail.com>
Signed-off-by: Giles Cope <gilescope@gmail.com>
Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope gilescope requested review from a team as code owners March 1, 2026 21:14
@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.19

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 99
LOW LOW 12
INFO INFO 83
TRACE TRACE 0
TOTAL TOTAL 194
Metric Values
Files scanned placeholder 31
Files parsed placeholder 31
Files failed to scan placeholder 0
Total executed queries placeholder 73
Queries failed to execute placeholder 0
Execution time placeholder 10

@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@gilescope gilescope enabled auto-merge March 7, 2026 10:37
@gilescope gilescope added this pull request to the merge queue Mar 11, 2026
Merged via the queue into main with commit 21aa09d Mar 11, 2026
38 of 39 checks passed
@gilescope gilescope deleted the giles-fix-scan-action-pin branch March 11, 2026 10:09
m2ux pushed a commit that referenced this pull request Mar 11, 2026
* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* ci: rename workflow name from build to scan

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
github-merge-queue Bot pushed a commit that referenced this pull request Mar 12, 2026
…22100] (#904)

* feat: add Prometheus per-query metrics to midnight data sources

Introduce MidnightDataSourceMetrics with public accessor methods,
replacing the upstream McFollowerMetrics whose accessors are
crate-private in partner-chains v1.8.1. The local observed_async_trait!
macro now records call counts and timing histograms for all six
midnight-specific data source methods (candidates, cnight observation,
federated authority observation).

JIRA: PM-22100
Made-with: Cursor

* ci: normalise scan job name (#823)

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* ci: rename workflow name from build to scan

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: add change file for PM-22100 dbsync query metrics

Made-with: Cursor

* feat: add sub-query SQL-level Prometheus timing for midnight data sources

Add individual Prometheus timing histograms for each SQL query inside
midnight-node data source methods. This provides per-query latency
visibility alongside the existing method-level timing, enabling
precise identification of slow DBSync queries on mainnet.

13 sub-query timers added across 3 data sources:
- cNight observation: 5 queries (block lookup + 4 concurrent UTXO queries)
- Federated authority: 3 queries (block lookup + 2 governance UTXOs)
- Candidates: 5 queries across 3 methods

Ref: PM-22100
Made-with: Cursor

* refactor: extract sub-query timer helper to reduce repetition

Replace 13 inline timer patterns with a shared start_sub_query_timer()
helper and SubQueryTimer RAII guard in the metrics module. Each call
site reduces from 3 lines to 1.

Made-with: Cursor

* refactor: remove method-level timing, keep SQL-level sub-query timers only

Remove the observed_async_trait! macro timing (method-level) since
per-SQL-query timing provides more useful granularity. Simplify
MidnightDataSourceMetrics to histogram-only (remove unused call counter).
Rename metric to midnight_data_source_query_time_elapsed with query_name
label for clarity.

Made-with: Cursor

* style: apply rustfmt to candidates data source

Made-with: Cursor

* chore: update changes file to reflect SQL-level sub-query timing

Made-with: Cursor

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Squirrel <giles.cope@shielded.io>
justinfrevert pushed a commit that referenced this pull request Mar 31, 2026
…22100] (#904)

* feat: add Prometheus per-query metrics to midnight data sources

Introduce MidnightDataSourceMetrics with public accessor methods,
replacing the upstream McFollowerMetrics whose accessors are
crate-private in partner-chains v1.8.1. The local observed_async_trait!
macro now records call counts and timing histograms for all six
midnight-specific data source methods (candidates, cnight observation,
federated authority observation).

JIRA: PM-22100
Made-with: Cursor

* ci: normalise scan job name (#823)

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* ci: rename workflow name from build to scan

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: add change file for PM-22100 dbsync query metrics

Made-with: Cursor

* feat: add sub-query SQL-level Prometheus timing for midnight data sources

Add individual Prometheus timing histograms for each SQL query inside
midnight-node data source methods. This provides per-query latency
visibility alongside the existing method-level timing, enabling
precise identification of slow DBSync queries on mainnet.

13 sub-query timers added across 3 data sources:
- cNight observation: 5 queries (block lookup + 4 concurrent UTXO queries)
- Federated authority: 3 queries (block lookup + 2 governance UTXOs)
- Candidates: 5 queries across 3 methods

Ref: PM-22100
Made-with: Cursor

* refactor: extract sub-query timer helper to reduce repetition

Replace 13 inline timer patterns with a shared start_sub_query_timer()
helper and SubQueryTimer RAII guard in the metrics module. Each call
site reduces from 3 lines to 1.

Made-with: Cursor

* refactor: remove method-level timing, keep SQL-level sub-query timers only

Remove the observed_async_trait! macro timing (method-level) since
per-SQL-query timing provides more useful granularity. Simplify
MidnightDataSourceMetrics to histogram-only (remove unused call counter).
Rename metric to midnight_data_source_query_time_elapsed with query_name
label for clarity.

Made-with: Cursor

* style: apply rustfmt to candidates data source

Made-with: Cursor

* chore: update changes file to reflect SQL-level sub-query timing

Made-with: Cursor

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Squirrel <giles.cope@shielded.io>
justinfrevert pushed a commit that referenced this pull request Mar 31, 2026
…22100] (#904)

* feat: add Prometheus per-query metrics to midnight data sources

Introduce MidnightDataSourceMetrics with public accessor methods,
replacing the upstream McFollowerMetrics whose accessors are
crate-private in partner-chains v1.8.1. The local observed_async_trait!
macro now records call counts and timing histograms for all six
midnight-specific data source methods (candidates, cnight observation,
federated authority observation).

JIRA: PM-22100
Made-with: Cursor

* ci: normalise scan job name (#823)

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* update scanner action to latest version

Signed-off-by: Giles Cope <gilescope@gmail.com>

* ci: rename workflow name from build to scan

Signed-off-by: Giles Cope <gilescope@gmail.com>

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>

* chore: add change file for PM-22100 dbsync query metrics

Made-with: Cursor

* feat: add sub-query SQL-level Prometheus timing for midnight data sources

Add individual Prometheus timing histograms for each SQL query inside
midnight-node data source methods. This provides per-query latency
visibility alongside the existing method-level timing, enabling
precise identification of slow DBSync queries on mainnet.

13 sub-query timers added across 3 data sources:
- cNight observation: 5 queries (block lookup + 4 concurrent UTXO queries)
- Federated authority: 3 queries (block lookup + 2 governance UTXOs)
- Candidates: 5 queries across 3 methods

Ref: PM-22100
Made-with: Cursor

* refactor: extract sub-query timer helper to reduce repetition

Replace 13 inline timer patterns with a shared start_sub_query_timer()
helper and SubQueryTimer RAII guard in the metrics module. Each call
site reduces from 3 lines to 1.

Made-with: Cursor

* refactor: remove method-level timing, keep SQL-level sub-query timers only

Remove the observed_async_trait! macro timing (method-level) since
per-SQL-query timing provides more useful granularity. Simplify
MidnightDataSourceMetrics to histogram-only (remove unused call counter).
Rename metric to midnight_data_source_query_time_elapsed with query_name
label for clarity.

Made-with: Cursor

* style: apply rustfmt to candidates data source

Made-with: Cursor

* chore: update changes file to reflect SQL-level sub-query timing

Made-with: Cursor

---------

Signed-off-by: Giles Cope <gilescope@gmail.com>
Co-authored-by: Squirrel <giles.cope@shielded.io>
gilescope pushed a commit that referenced this pull request Apr 8, 2026
m2ux added a commit that referenced this pull request Apr 23, 2026
…ted inputs (#823)

Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
…ted inputs (#823)

Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants