Skip to content

examples: Fix flask import - #20038

Merged
KBaichoo merged 2 commits into
envoyproxy:mainfrom
phlax:verify-fix-flask
Feb 18, 2022
Merged

KBaichoo merged 2 commits into
envoyproxy:mainfrom
phlax:verify-fix-flask

Conversation

@phlax

@phlax phlax commented Feb 18, 2022 •

Copy link
Copy Markdown
Member

Signed-off-by: Ryan Northey [email protected]

Commit Message:

Currently verify_examples is failing due to a problem with flask dependencies

I tested this with various versions of flask and all below v2 seem to have the problem - i have therefore updated all the examples to current latest 2.0.3

Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] Fix #20037
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Ryan Northey <[email protected]>
KBaichoo
KBaichoo previously approved these changes Feb 18, 2022

@KBaichoo KBaichoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm (pending CI), thanks for addressing this so quick!

kfaseela
kfaseela previously approved these changes Feb 18, 2022
@KBaichoo

Copy link
Copy Markdown
Contributor

think we might have missed a spot:

2022-02-18T15:55:01.4164580Z Step 3/7 : RUN pip3 install -q flask
2022-02-18T15:55:01.4439901Z  ---> Running in 1882c74386dd
2022-02-18T15:55:03.4737356Z �[91mCommand "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4844tumf/MarkupSafe/
2022-02-18T15:55:03.6958841Z �[0mThe command '/bin/sh -c pip3 install -q flask' returned a non-zero code: 1
2022-02-18T15:55:03.6960504Z Service 'service' failed to build : Build failed
2022-02-18T15:55:03.7889972Z ERROR: starting brotli .

@phlax

phlax commented Feb 18, 2022 •

Copy link
Copy Markdown
Member Author

arrgghh - i tested one of the examples with the updated dep - i hoped it would just work, but a couple have failed, ill debug locally and update...

@KBaichoo

Copy link
Copy Markdown
Contributor
[04:29:14] kbaichoo:envoy:0 $grep -ir "pip3 .* Flask" examples/
examples/win32-front-proxy/Dockerfile-service:RUN pip3 install -q Flask==0.11.1 requests==2.18.4
examples/cors/frontend/Dockerfile-service:RUN pip3 install -q Flask==0.11.1
examples/cors/backend/Dockerfile-service:RUN pip3 install -q Flask==0.11.1
examples/csrf/samesite/Dockerfile-service:RUN pip3 install -q Flask==0.11.1
examples/csrf/crosssite/Dockerfile-service:RUN pip3 install -q Flask==0.11.1
examples/load-reporting-service/Dockerfile-http-server:RUN pip3 install -q Flask==0.11.1
examples/cache/Dockerfile-service:RUN pip3 install -q Flask==0.11.1 pyyaml
examples/ext_authz/upstream/service/Dockerfile:RUN pip3 install -q Flask==0.11.1
examples/brotli/Dockerfile-service:RUN pip3 install -q flask
examples/front-proxy/Dockerfile-jaeger-service:RUN pip3 install -q Flask==0.11.1 requests==2.18.4
examples/front-proxy/Dockerfile-service:RUN pip3 install -q Flask==0.11.1 requests==2.18.4
examples/double-proxy/Dockerfile-app:RUN pip3 install -q Flask==0.11.1 requests==2.18.4 psycopg2-binary
examples/gzip/Dockerfile-service:RUN pip3 install -q flask

so just gzip and brotli need update?

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax dismissed stale reviews from kfaseela and KBaichoo via 8d28bb3 February 18, 2022 16:34
@phlax

phlax commented Feb 18, 2022

Copy link
Copy Markdown
Member Author

yep, should work now

@KBaichoo
KBaichoo enabled auto-merge (squash) February 18, 2022 18:21
@KBaichoo
KBaichoo merged commit 8e955c6 into envoyproxy:main Feb 18, 2022
RyanTheOptimist pushed a commit to RyanTheOptimist/envoy that referenced this pull request Mar 1, 2022
examples: Fix flask import (envoyproxy#20038)

* examples: Fix flask import

Signed-off-by: Ryan Northey <[email protected]>

Signed-off-by: phlax <[email protected]>
RyanTheOptimist pushed a commit to RyanTheOptimist/envoy that referenced this pull request Mar 4, 2022
examples: Fix flask import (envoyproxy#20038)

* examples: Fix flask import

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: phlax <[email protected]>
Signed-off-by: Ryan Hamilton [email protected]
RyanTheOptimist pushed a commit to RyanTheOptimist/envoy that referenced this pull request Mar 4, 2022
examples: Fix flask import (envoyproxy#20038)

* examples: Fix flask import

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: phlax <[email protected]>
Signed-off-by: Ryan Hamilton [email protected]

Signed-off-by: Ryan Hamilton <[email protected]>
RyanTheOptimist pushed a commit to RyanTheOptimist/envoy that referenced this pull request Mar 4, 2022
examples: Fix flask import (envoyproxy#20038)

* examples: Fix flask import

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: phlax <[email protected]>
Signed-off-by: Ryan Hamilton [email protected]
RyanTheOptimist added a commit that referenced this pull request Mar 7, 2022
Backport: examples: Fix flask import (#20038)

Signed-off-by: Ryan Northey [email protected]
Signed-off-by: phlax [email protected]

Backport: Update com_github_nlohmann_json: v3.10.5 (current: v3.10.4) (#19384)

Signed-off-by: Faseela K [email protected]
Signed-off-by: Ryan Hamilton [email protected]

Backport: build(deps): bump github/codeql-action from 1.1.2 to 1.1.3 (#20107)

Bumps github/codeql-action from 1.1.2 to 1.1.3.

Release notes
Changelog
Commits
updated-dependencies:

dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Ryan Hamilton [email protected]

Backport: ci: not using alpine image in examples (#19805)

Signed-off-by: Lizan Zhou [email protected]
Signed-off-by: Ryan Hamilton [email protected]
RyanTheOptimist added a commit that referenced this pull request Mar 8, 2022
Backport: examples: Fix flask import (#20038)

Signed-off-by: Ryan Northey [email protected]
Signed-off-by: phlax [email protected]

Backport: build(deps): bump github/codeql-action from 1.1.2 to 1.1.3 (#20107)

Bumps github/codeql-action from 1.1.2 to 1.1.3.

updated-dependencies:

dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
Signed-off-by: dependabot[bot] [email protected]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Ryan Hamilton [email protected]

Backport: ci: not using alpine image in examples (#19805)

Signed-off-by: Lizan Zhou [email protected]
Signed-off-by: Ryan Hamilton [email protected]
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.

CI: Verify examples failing

3 participants