The Compatibility workflow compares
the PR merge result with the PR's base commit. On pushes to main, it compares
the new commit with the branch's previous tip.
- Protobuf runs Buf's
FILErules over the checked-in schemas, including internal RPCs. The CI supplies the policy to both revisions. Generated code drift is checked by the separate Proto workflow. - Persistence builds both revisions and starts three loopback Raft voters with disposable data directories. It replaces one voter at a time during upgrade, downgrade, reupgrade, and restart. Before downgrade and the final restart, each voter must persist a snapshot covering a new marker. The test moves each stopped voter's Pebble state aside, preserves its Raft WAL and snapshots, and requires a successful full snapshot restore and marker readback from the recovered voter while it is the leader. During downgrade, each voter first opens the candidate's intact Pebble database with the baseline, then verifies that the baseline can also restore the candidate-generated snapshot. When the next voter is the leader, the test transfers leadership first. During each replacement it samples the two remaining voters for a shared leader and term and tests a committed Redis write and read. While the voter is stopped, it also writes and reads data through Redis, DynamoDB, S3, and SQS. It checks the original synthetic data after each rollout.
Both jobs run on GitHub-hosted runners with read-only repository permissions. The test credentials are disposable and used by the loopback listeners. The isolated release qualification covers the deployment image and Kubernetes rollout.
Run the schema check locally from the repository root with Buf 1.55.1:
python3 deploy/automation/protobuf_compatibility.py origin/main HEAD