Skip to content

Use an sha 256 hash of the system instructions as it's upload filename#3814

Merged
aabmass merged 20 commits intoopen-telemetry:mainfrom
DylanRussell:hash_sys_instruct
Oct 14, 2025
Merged

Use an sha 256 hash of the system instructions as it's upload filename#3814
aabmass merged 20 commits intoopen-telemetry:mainfrom
DylanRussell:hash_sys_instruct

Conversation

@DylanRussell
Copy link
Copy Markdown
Contributor

Description

Use an md5 hash of the system instructions as it's upload filename, and check if the file exists before re-uploading it..

In many (most?) cases system instructions will be text and is unlikely to change, this prevents uploading the same system instructions twice.

Type of change

Please delete options that are not relevant.

  • [ x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Unit tests

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • [x ] No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • [x ] Followed the style guidelines of this project
  • [x ] Changelogs have been updated
  • [x ] Unit tests have been added
  • [x ] Documentation has been updated

@DylanRussell DylanRussell requested a review from a team as a code owner October 7, 2025 17:53
@DylanRussell DylanRussell changed the title Use an md5 hash of the system instructions as it's upload filename Use an sha 256 hash of the system instructions as it's upload filename Oct 9, 2025
@aabmass aabmass merged commit ebe5bdf into open-telemetry:main Oct 14, 2025
638 checks passed
sightseeker added a commit to sightseeker/opentelemetry-python-contrib that referenced this pull request Mar 11, 2026
open-telemetry#3814)

* Use md5 hash of system instructions as the filename for system instructions.

* Fix typecheck add changelog

* Respond to comments

* Merge to main and fix changelog

* Switch to Sha 256

* Make changes

* Fix hashing

* Fix lint, typecheck, broke test

* Respond to comments

* fix test

* Fix linter

* Fix assert statements and update changelog
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.

7 participants