Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GH asset otel validation #1876

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

maxep
Copy link
Member

@maxep maxep commented Jun 3, 2024

What and why?

Validate OpenTelemetryApi.xcframework during distribution.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests for Core, RUM, Trace, Logs, CR and WVT
  • Run unit tests for Session Replay
  • Run integration tests
  • Run smoke tests
  • Run tests for tools/

@maxep maxep requested review from a team as code owners June 3, 2024 14:42
mariedm
mariedm previously approved these changes Jun 4, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Is this script executed automatically as part of a CI/CD pipeline or other workflow?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's part of CD pipeline and executed when distributing a new tag 👍

name = 'OpenTelemetryApi.xcframework'

def validate(self, zip_directory: DirectoryMatcher, in_version: Version) -> bool:
min_otel_version = Version('2.12.0')
Copy link
Member

Choose a reason for hiding this comment

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

nit: this could be added at the top of the file with the other version requirements (though it's only used by this function for now)

Copy link
Member Author

Choose a reason for hiding this comment

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

This min version only applies to otel, so it can be contained in OpenTelemetryXCFrameworkValidator. We can make it global when we need to share it 👍

@maxep maxep merged commit 0b00de5 into develop Jun 5, 2024
2 checks passed
@maxep maxep deleted the maxep/fix-xcframework-validation branch June 5, 2024 06:39
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