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

Run local development and PR E2E in podman #2817

Merged
merged 15 commits into from
Jul 13, 2023

Conversation

hawkowl
Copy link
Collaborator

@hawkowl hawkowl commented Mar 30, 2023

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-2532

What this PR does / why we need it:

Runs local development and PR E2E in podman, instead of directly. Removes the remaining Installer dependencies.

Test plan for issue:

Local testing, E2E.

Is there any documentation that needs to be updated for this PR?

Some local dev documentation likely needs revising.

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Apr 3, 2023
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Please rebase pull request.

@github-actions github-actions bot added needs-rebase branch needs a rebase and removed needs-rebase branch needs a rebase labels Apr 3, 2023
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Please rebase pull request.

@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jun 7, 2023
@hawkowl hawkowl force-pushed the hawkowl/local-dev-podman branch 3 times, most recently from e62087b to 94cd910 Compare June 13, 2023 12:54
@hawkowl hawkowl changed the title [WIP] Run local development and PR E2E in podman Run local development and PR E2E in podman Jun 13, 2023
@hawkowl hawkowl added enhancement New feature or request size-large Size large dependencies Pull requests that update a dependency file skippy pull requests raised by member of Team Skippy labels Jun 13, 2023
@github-actions github-actions bot added the needs-rebase branch needs a rebase label Jun 14, 2023
@github-actions
Copy link

Please rebase pull request.

@hawkowl hawkowl added priority-high High priority issue or pull request next-up ready-for-review labels Jun 15, 2023
@github-actions github-actions bot added needs-rebase branch needs a rebase and removed needs-rebase branch needs a rebase labels Jun 15, 2023
@github-actions
Copy link

Please rebase pull request.

@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Jun 15, 2023
@hawkowl hawkowl marked this pull request as ready for review June 15, 2023 05:10
@hawkowl hawkowl force-pushed the hawkowl/local-dev-podman branch 2 times, most recently from 29be917 to 514acd1 Compare June 29, 2023 06:52
@hawkowl
Copy link
Collaborator Author

hawkowl commented Jun 29, 2023

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hawkowl
Copy link
Collaborator Author

hawkowl commented Jul 3, 2023

/azp run e2e

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@SudoBrendan SudoBrendan left a comment

Choose a reason for hiding this comment

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

This is all making sense to me, can't wait!!

}),
steps.Action(func(context.Context) error { return m.createSecrets(ctx, doc, sub) }),
steps.Action(func(context.Context) error { return m.startContainer(ctx, version) }),
steps.Condition(m.containerFinished, 60*time.Minute, false),
Copy link
Collaborator

Choose a reason for hiding this comment

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

followup idea: do we need a 60m timeout now? I think that hive install times are typically 15-20 minutes once the container is up, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

except in eastus2 :')

Comment on lines +8 to +12
build-tags:
- "aro"
- "containers_image_openpgp"
- "exclude_graphdriver_devicemapper"
- "exclude_graphdriver_btrfs"
Copy link
Contributor

Choose a reason for hiding this comment

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

does this have a reason to be in this PR? or is it just some extra change bundled in it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Podman's bindings vendors in more of the image lib that causes build dep side effects.

Copy link
Contributor

Choose a reason for hiding this comment

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

wondering if these changes belong in this pr too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As above, these flags need to be changed. I decided to clean it up a smidge, since it will make the diff when the aro build tag is removed a little bit smaller.

Copy link
Contributor

Choose a reason for hiding this comment

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

why do we use ginkgo and gomega here? these are standard unit tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We use gomega in some other places, and I've got mildly sick of dealing with stdlib golang testing, so I just wrote it in ginkgo instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

what about ginkgo? We only use it in e2e, we should have some consistency, we should either use it everywhere in pkg or not at all

Copy link
Contributor

Choose a reason for hiding this comment

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

can you explain why ginkgo and gomega are needed here? a comment would be nice in the file, since we are only using those in the e2e and not in pkg

@hawkowl hawkowl requested a review from facchettos July 12, 2023 09:36
@hawkowl hawkowl dismissed facchettos’s stale review July 13, 2023 03:03

followed up concerns on email

@hawkowl hawkowl merged commit 06b565a into Azure:master Jul 13, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request next-up priority-high High priority issue or pull request ready-for-review size-large Size large skippy pull requests raised by member of Team Skippy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants