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

ci: Run smoke tests in CI #16

Merged
merged 20 commits into from
Oct 11, 2024
Merged

ci: Run smoke tests in CI #16

merged 20 commits into from
Oct 11, 2024

Conversation

pkanal
Copy link
Contributor

@pkanal pkanal commented Oct 10, 2024

Which problem is this PR solving?

Run smoke tests in CI on every branch/PR and nightly on main.

Short description of the changes

  • Add smoke_tests job to Circle CI
  • Install the collector directly on the CI machine instead of through docker to run smoke tests against

How to verify that this has the expected result

Screenshot 2024-10-10 at 3 39 16 PM

@pkanal pkanal marked this pull request as ready for review October 10, 2024 20:46
@pkanal pkanal requested a review from a team October 10, 2024 20:47
@pkanal pkanal added no-changelog Omit this PR from changelog/release notes. type: maintenance The necessary chores to keep the dust off. labels Oct 10, 2024
Comment on lines +45 to +47
version: "17.5"
platform: "iOS"
device: "iPhone 15"
Copy link
Member

Choose a reason for hiding this comment

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

do we want to use some matrix tests to cover more versions/platforms/devices?

Copy link
Collaborator

Choose a reason for hiding this comment

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

if we do test on older iOS versions, we'll have to change the test expectations, because various MetricKit signals were added in different iOS versions. it's probably not trivial

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should make this a follow up task, but overall yes this sounds like a good idea!

environment:
COLLECTOR_VERSION: "0.111.0"
command: |
curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v${COLLECTOR_VERSION}/otelcol_${COLLECTOR_VERSION}_darwin_arm64.tar.gz
Copy link
Member

Choose a reason for hiding this comment

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

I was going to suggest using docker or caching the download could be good but the smoke tests take 10mins to run so probably not worth it 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was the original plan 😭 but I found it was really hard to get docker working on the CI mac machine and the collector setup itself is super fast. The thing that takes the longest is running the iOS app, which we can probably make faster with some CircleCI tricks.

Copy link
Collaborator

@beekhc beekhc left a comment

Choose a reason for hiding this comment

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

looks good to me

.circleci/config.yml Outdated Show resolved Hide resolved
@pkanal pkanal merged commit 16fdb64 into main Oct 11, 2024
6 checks passed
@pkanal pkanal deleted the purvi/ci-smoke-tests branch October 11, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Omit this PR from changelog/release notes. type: maintenance The necessary chores to keep the dust off.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants