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

merlin-sdk docker image #404

Merged
merged 15 commits into from
Jul 6, 2023
Merged

merlin-sdk docker image #404

merged 15 commits into from
Jul 6, 2023

Conversation

ariefrahmansyah
Copy link
Contributor

@ariefrahmansyah ariefrahmansyah commented Jun 4, 2023

What this PR does / why we need it:

This PR introduces new Docker image, namely merlin-sdk that contains the SDK source code and its test suite. This docker enables faster development iteration.

This PR also updates mock_oauth to cater for running e2e-test on machine that use Google Workload Identity.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

Checklist

  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Updated documentation
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduce API changes

@ariefrahmansyah ariefrahmansyah marked this pull request as ready for review June 21, 2023 07:45
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this, @ariefrahmansyah ! 🚀

Left some small comments.

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
python/sdk/Dockerfile Outdated Show resolved Hide resolved
python/sdk/test/client_test.py Outdated Show resolved Hide resolved
@ariefrahmansyah ariefrahmansyah merged commit 7bf22a0 into main Jul 6, 2023
42 checks passed
@ariefrahmansyah ariefrahmansyah deleted the merlin-sdk-docker branch July 6, 2023 07:56
ariefrahmansyah added a commit that referenced this pull request Jul 6, 2023
<!--  Thanks for sending a pull request!  Here are some tips for you:

1. Run unit tests and ensure that they are passing
2. If your change introduces any API changes, make sure to update the
e2e tests
3. Make sure documentation is updated for your PR!

-->

**What this PR does / why we need it**:
<!-- Explain here the context and why you're making the change. What is
the problem you're trying to solve. --->

In #404, Merlin SDK Dockerfile misses ARG version.

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required. Enter your extended release note in
the block below.
If the PR requires additional action from users switching to the new
release, include the string "action required".

For more information about release notes, see kubernetes' guide here:
http://git.k8s.io/community/contributors/guide/release-notes.md
-->

```release-note
NONE
```

**Checklist**

- [ ] Added unit test, integration, and/or e2e tests
- [x] Tested locally
- [ ] Updated documentation
- [ ] Update Swagger spec if the PR introduce API changes
- [ ] Regenerated Golang and Python client if the PR introduce API
changes
ariefrahmansyah added a commit that referenced this pull request Jul 13, 2023
<!--  Thanks for sending a pull request!  Here are some tips for you:

1. Run unit tests and ensure that they are passing
2. If your change introduces any API changes, make sure to update the
e2e tests
3. Make sure documentation is updated for your PR!

-->

**What this PR does / why we need it**:
<!-- Explain here the context and why you're making the change. What is
the problem you're trying to solve. --->

In #404, we merge mock_oauth in client_test.py and merlin_test.py to one
pytest fixture in conftest.py. However, there's an issue where the mock
responses in conftest is not used by client_test or merlin_test because
it was using different instance of Reponses object.

This PR introduce
[pytest_configure()](https://docs.pytest.org/en/7.1.x/reference/reference.html#pytest.hookspec.pytest_configure)
function where it sets mock responses as global variable that can be
called by other files.

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required. Enter your extended release note in
the block below.
If the PR requires additional action from users switching to the new
release, include the string "action required".

For more information about release notes, see kubernetes' guide here:
http://git.k8s.io/community/contributors/guide/release-notes.md
-->

```release-note
NONE
```

**Checklist**

- [x] Updated unit test, integration, and/or e2e tests
- [x] Tested locally
- [ ] Updated documentation
- [ ] Update Swagger spec if the PR introduce API changes
- [ ] Regenerated Golang and Python client if the PR introduce API
changes
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.

2 participants