Skip to content

Comments

Remove obsolete SGX add_node_code/remove_node_code actions and wrappers#7680

Open
Copilot wants to merge 4 commits intomainfrom
copilot/remove-obsolete-add-new-code-retire-code
Open

Remove obsolete SGX add_node_code/remove_node_code actions and wrappers#7680
Copilot wants to merge 4 commits intomainfrom
copilot/remove-obsolete-add-new-code-retire-code

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

SGX is no longer a supported platform. The add_node_code and remove_node_code constitution actions and their Python wrappers are dead code.

  • Constitution actions: Remove add_node_code and remove_node_code from samples/constitutions/default/actions.js and samples/minimal_ccf/app/actions.js
  • Python test infra: Remove add_sgx_measurement/remove_sgx_measurement methods and "sgx" branches from add_measurement()/remove_measurement() in tests/infra/consortium.py
  • Docs: Update doc/operations/code_upgrade.rst to reference the active proposal actions (remove_snp_measurement, remove_virtual_measurement, remove_snp_host_data)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…d_sgx_measurement and remove_sgx_measurement

Co-authored-by: maxtropets <16566519+maxtropets@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove obsolete add_new_code and retire_code from CCF codebase Remove obsolete add_new_code and retire_code methods Feb 21, 2026
Copilot AI requested a review from maxtropets February 21, 2026 20:53
…nd Python wrappers

Co-authored-by: maxtropets <16566519+maxtropets@users.noreply.github.com>
Copilot AI changed the title Remove obsolete add_new_code and retire_code methods Remove obsolete SGX add_node_code/remove_node_code actions and wrappers Feb 21, 2026
@maxtropets maxtropets marked this pull request as ready for review February 21, 2026 21:20
@maxtropets maxtropets requested a review from a team as a code owner February 21, 2026 21:20
Copilot AI review requested due to automatic review settings February 21, 2026 21:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request removes obsolete SGX-specific code for managing node code identifiers, as SGX is no longer a supported platform in CCF. The changes clean up dead code from constitution actions and Python test infrastructure.

Changes:

  • Removed SGX-specific constitution actions (add_node_code, remove_node_code) from both default and minimal CCF constitutions
  • Removed Python helper methods (add_new_code, retire_code) and SGX platform branches from test infrastructure
  • Updated documentation to reference active (non-SGX) proposal actions

Reviewed changes

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

File Description
tests/infra/consortium.py Removed add_new_code() and retire_code() methods; removed "sgx" platform branches from add_measurement() and remove_measurement()
samples/minimal_ccf/app/actions.js Removed add_node_code and remove_node_code constitution actions
samples/constitutions/default/actions.js Removed add_node_code and remove_node_code constitution actions
doc/operations/code_upgrade.rst Updated to reference remove_snp_host_data instead of obsolete remove_node_code

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