Skip to content

Remove rulesets_etags output to eliminate permadrift#19

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-permadrift-etags
Draft

Remove rulesets_etags output to eliminate permadrift#19
Copilot wants to merge 3 commits intomainfrom
copilot/fix-permadrift-etags

Conversation

Copy link

Copilot AI commented Mar 24, 2026

The GitHub API non-deterministically returns strong vs. weak ETags ("abc..." vs W/"xyz...") for the same ruleset resource, causing rulesets_etags to show spurious changes on every plan/apply cycle.

Changes

  • outputs.tf — removed rulesets_etags output; ETags are HTTP caching internals with no stable semantic value for module consumers
  • examples/complete/outputs.tf, examples/minimum/outputs.tf — removed corresponding passthrough outputs
  • test/src/examples_complete_test.go — removed etag output fetch and length assertion
Original prompt

This section details on the original issue you should resolve

<issue_title>Permadrift from etags</issue_title>
<issue_description>### Describe the Bug

I am noting permadrift with rulesets. For example:

Changes to Outputs:
  ~ rulesets_etags               = {
      ~ main_branch_protection = "\"7e66b1d2703c08ce8ad4fd6c33f02f1fadc029278e88b0a5a189346c6b0386ee\"" -> "W/\"02ffd1a67e695b87303db4ab4fb71ad52d60a76e7c021cca8db01a365e21927a\""
    }

Expected Behavior

No drift on outputs on subsequent plan/applies

Steps to Reproduce

Happens on subsequent plan/applies

Screenshots

No response

Environment

No response

Additional Context

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

@mergify mergify bot added triage Needs triage wip Work in Progress: Not ready for final review or merge labels Mar 24, 2026
Copilot AI changed the title [WIP] Fix permadrift issue with rulesets etags Remove rulesets_etags output to eliminate permadrift Mar 24, 2026
Copilot AI requested a review from osterman March 24, 2026 20:58
@mergify mergify bot removed the wip Work in Progress: Not ready for final review or merge label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Permadrift from etags

2 participants