Skip to content

Add full support for the NoSyncTag. - #8312

Open
senecameeks wants to merge 13 commits into
quantumlib:mainfrom
senecameeks:u/smeeks/no_sync
Open

Add full support for the NoSyncTag.#8312
senecameeks wants to merge 13 commits into
quantumlib:mainfrom
senecameeks:u/smeeks/no_sync

Conversation

@senecameeks

Copy link
Copy Markdown
Collaborator

Partial support for the NoSyncTag was added in #7044.

This PR adds full support.

@github-actions github-actions Bot added the size: L 250< lines changed <1000 label Sep 8, 2026
@pavoljuhas
pavoljuhas self-requested a review September 8, 2026 21:31
Comment thread cirq-google/cirq_google/json_test_data/NoSyncTag.repr Outdated

@pavoljuhas pavoljuhas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please hold on with the merge, I will do review shortly.

@mhucka mhucka 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.

Thank you for doing this. I have just a couple of small items.

Comment thread cirq-google/cirq_google/json_test_data/NoSyncTag.json
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag_test.py

@pavoljuhas pavoljuhas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should turn all init arguments to keyword only, ideally also as an attrs.frozen fields so that validated attributes cannot mutate. We should also default the unset int and bool fields to 0 and False respectively, to mirror how are they handled in the proto; this would let us drop a lot of is None, is not None checks.

Finally, please remove the option for NoSyncTag-type arguments in to_proto and from_proto to be consistent with other SomeTag classes.

Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag_test.py
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/json_test_data/NoSyncTag.repr Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py
senecameeks and others added 5 commits September 9, 2026 11:39
…8313)

Problem: Building cirq-core, cirq-google, etc.  produces `build`
directories with a duplicate sources that do not match
pylint `ignore-paths`.

Solution: Ignore any package build directories first.
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.59%. Comparing base (43f6849) to head (973704c).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #8312    +/-   ##
========================================
  Coverage   99.59%   99.59%            
========================================
  Files        1125     1127     +2     
  Lines      103250   103386   +136     
========================================
+ Hits       102829   102965   +136     
  Misses        421      421            

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@senecameeks

Copy link
Copy Markdown
Collaborator Author

Thanks @pavoljuhas and @mhucka for the review! I updated the PR with your suggestions, PTAL :)

@mhucka mhucka 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.

Looks good, but before merging, please see the last couple of inline change suggestions.

Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Comment thread cirq-google/cirq_google/ops/no_sync_tag.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: L 250< lines changed <1000

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants