Skip to content

feat: Updated schema for SGW upgrade jobs' better visualization overall#409

Merged
vipbhardwaj merged 9 commits into
mainfrom
sgw-upg-schema
May 14, 2026
Merged

feat: Updated schema for SGW upgrade jobs' better visualization overall#409
vipbhardwaj merged 9 commits into
mainfrom
sgw-upg-schema

Conversation

@vipbhardwaj

@vipbhardwaj vipbhardwaj commented May 8, 2026

Copy link
Copy Markdown
Contributor

CBG-5369

There is a need to change the visualization for SGW Upgrade test runs shown up on greenboard because the upgrade path and the source and target versions make it very much different from the traditional bar-graph way of viewing the passed and failed tests. I am still working on the POC and finalizing something similar to Ben's idea.

This PR involves the schema changes for the same, it will have a bit more commits before I assign an human reviewer to it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors how Sync Gateway (SGW) upgrade job results are emitted to Greenboard to support a new visualization model: each pytest iteration records structured upgrade-step data, and a single aggregated “batch” document is intended to be uploaded once per upgrade run.

Changes:

  • Switched upgrade-mode Greenboard reporting from “upload each step” to “record each step to a shared JSON state file”.
  • Added GreenboardUploader.record_upgrade_step(...) and GreenboardUploader.upload_upgrade_batch(...) to support the new aggregated schema (iterations, failedAt, etc.).
  • Updated the rolling upgrade Jenkins script to set up an aggregated results file and attempt a batch upload on exit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
jenkins/pipelines/QE/upg-sgw/test_rolling.sh Initializes an upgrade-results state file and installs an EXIT trap intended to upload a single aggregated batch result.
client/src/cbltest/plugins/greenboard_fixture.py For upgrade runs, records iteration results to a JSON state file instead of uploading per-iteration docs.
client/src/cbltest/greenboarduploader.py Implements JSON state append (record_upgrade_step) and a single aggregated Greenboard upload (upload_upgrade_batch).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread jenkins/pipelines/QE/upg-sgw/test_rolling.sh Outdated
Comment thread jenkins/pipelines/QE/upg-sgw/test_rolling.sh
Comment thread client/src/cbltest/plugins/greenboard_fixture.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment thread jenkins/pipelines/QE/upg-sgw/test_rolling.sh
Comment thread client/src/cbltest/greenboarduploader.py
Comment thread client/src/cbltest/greenboarduploader.py
Comment thread client/src/cbltest/greenboarduploader.py
@vipbhardwaj vipbhardwaj requested a review from borrrden May 11, 2026 11:40
Comment thread client/src/cbltest/greenboarduploader.py
@vipbhardwaj vipbhardwaj requested a review from borrrden May 13, 2026 07:00
@vipbhardwaj vipbhardwaj merged commit 464758c into main May 14, 2026
5 checks passed
@vipbhardwaj vipbhardwaj deleted the sgw-upg-schema branch May 14, 2026 08:42
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