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

add deploy e2e tester image functionality to new e2e #79

Merged
merged 9 commits into from
Aug 15, 2023
Merged

add deploy e2e tester image functionality to new e2e #79

merged 9 commits into from
Aug 15, 2023

Conversation

OliverMKing
Copy link
Collaborator

@OliverMKing OliverMKing commented Aug 11, 2023

Description

Part 2 of some e2e improvements. This is targeting a new e2e framework and does not impact the current e2e environment (yet). The plan is to move all the e2e tests over to this new framework in the next pr and replace the existing one with this new one.

This change makes it so we can easily deploy an e2e testing image to each testing infrastructure cluster. This e2e testing image must run inside clusters to accommodate all cluster options (namely private clusters).

Additionally, this PR sets up the ability for e2e tests to be run in separate GitHub jobs.

We want e2e tests to run in a separate job for each phase with separate jobs for each infrastructure. This is to ensure that if we need to manually retry a test it it's simple and we don't need to retry everything. It also makes it easy to detect errors.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Locally

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@coveralls
Copy link
Collaborator

coveralls commented Aug 11, 2023

Pull Request Test Coverage Report for Build 5868909783

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 87.445%

Totals Coverage Status
Change from base Build 5868425389: 0.0%
Covered Lines: 1790
Relevant Lines: 2047

💛 - Coveralls

// https://github.com/Azure/azure-cli/blob/5f9a8fa25cc1c980ebe5e034bd419c95a1c578e2/src/azure-cli/azure/cli/command_modules/acr/build.py#L25
cmd := exec.Command("az", "acr", "build", "--registry", a.name, "--image", imageName, ".")
cmd.Stdout = newLogWriter(lgr, "building and pushing acr image: ", nil)
cmd.Stderr = newLogWriter(lgr, "building and pushing acr image: ", to.Ptr(slog.LevelError))
Copy link
Contributor

Choose a reason for hiding this comment

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

love to see the slog package in the wild

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And the slog package loves to see you

Copy link
Collaborator Author

@OliverMKing OliverMKing Aug 14, 2023

Choose a reason for hiding this comment

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

slog be with you

Copy link
Collaborator

@jaiveerk jaiveerk left a comment

Choose a reason for hiding this comment

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

few requests but nothing major, lgtm for the most part

Copy link
Collaborator

@jaiveerk jaiveerk left a comment

Choose a reason for hiding this comment

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

lgtm

@OliverMKing
Copy link
Collaborator Author

/ok-to-test sha=d8bfea1

@OliverMKing OliverMKing merged commit d7e97bd into Azure:main Aug 15, 2023
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.

5 participants