Skip to content

feat: add serverless item and report counts - #592

Merged
viseshrp merged 4 commits into
mainfrom
feat/serverless-object-counts
Aug 5, 2026
Merged

feat: add serverless item and report counts#592
viseshrp merged 4 commits into
mainfrom
feat/serverless-object-counts

Conversation

@viseshrp

@viseshrp viseshrp commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes https://ado.internal.synopsys.com/tfs/ANSYS_Development/Portfolio/_workitems/edit/1494403

Summary

  • add database-level ADR.get_item_count() and ADR.get_report_count() helpers
  • define reports as top-level templates with parent=None so child templates are excluded
  • add isolated and ADR-backed coverage, and document both helpers
  • refresh uv.lock through the repository-required post-commit upgrade workflow

Verification

  • uv run pytest tests/serverless/test_adr.py -k test_get_counts_use_database_level_queries -q (1 passed)
  • uv run pre-commit run --all-files
  • make check
  • make smoketest
  • uv run make -C doc html (succeeded with warnings)

The two ADR-backed count tests were collected but could not start locally because the Docker daemon was unavailable. They remain included for the product-equipped CI/ADO environment.

Expose database-level item and root-report counts through the serverless ADR facade. Root report counts filter on parent=None so nested templates are excluded.

Add unit and ADR-backed coverage for the count queries and document both helpers in the serverless querying guide.
Refresh locked package versions with the repository-required post-commit uv upgrade workflow. Project dependency constraints remain unchanged.
Refresh the lockfile to cffi 2.1.1 so CI installs the latest resolved dependency set.

Verified with pre-commit, make check, make smoketest, and the focused serverless count test.
Bump the Security Scan workflow from ansys/actions v10.3.2 to v10.3.6. The upstream hotfix constrains NLTK to avoid the safe-path import crash that prevented Safety from producing its report.

Verified with pre-commit, make check, make smoketest, and the focused serverless count test.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.60%. Comparing base (e53d58d) to head (94664bf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #592      +/-   ##
==========================================
+ Coverage   82.59%   82.60%   +0.01%     
==========================================
  Files          31       31              
  Lines        9021     9027       +6     
  Branches     1623     1623              
==========================================
+ Hits         7451     7457       +6     
  Misses       1084     1084              
  Partials      486      486              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@viseshrp
viseshrp requested a review from margalva August 4, 2026 16:08
@viseshrp
viseshrp marked this pull request as ready for review August 4, 2026 16:08
@viseshrp
viseshrp merged commit 27f3ec8 into main Aug 5, 2026
21 of 22 checks passed
@viseshrp
viseshrp deleted the feat/serverless-object-counts branch August 5, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants