dstandish opened a new pull request, #39698:
URL: https://github.com/apache/airflow/pull/39698
Previously you would not see the error message; you'd only see that the
command failed. Now you'll see it.
Here's an example of what it looks like now:
```
helm_tests/airflow_core/test_rpc_server.py:578
(TestRPCServerDeployment.test_rpc_server_security_context_legacy)
../../tests/charts/helm_template_generator.py:141: in render_chart
result.check_returncode()
../../../../.pyenv/versions/3.11.3/lib/python3.11/subprocess.py:502: in
check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
E subprocess.CalledProcessError: Command '['helm', 'template',
'release-name', '/Users/dstandish/code/airflow/chart', '--values',
'/var/folders/9c/tknx7xx10qx92983y1r5djb40000gn/T/tmpcbo2q6kz',
'--kube-version', '1.29.1', '--namespace', 'default', '--show-only',
'templates/rpc-server/rpc-server-deployment.yaml']' returned non-zero exit
status 1.
The above exception was the direct cause of the following exception:
test_rpc_server.py:580: in test_rpc_server_security_context_legacy
docs = render_chart(
../../tests/charts/helm_template_generator.py:143: in render_chart
raise RuntimeError(
E RuntimeError: Helm command failed. Stderr:
E Error: values don't meet the specifications of the schema(s) in the
following chart(s):
E airflow:
E - _rpcServer: Additional property securityContext is not allowed
```
Before you would only have seen the first part of it, e.g. something like
this:
```
helm_tests/airflow_core/test_rpc_server.py:578
(TestRPCServerDeployment.test_rpc_server_security_context_legacy)
../../tests/charts/helm_template_generator.py:141: in render_chart
result.check_returncode()
../../../../.pyenv/versions/3.11.3/lib/python3.11/subprocess.py:502: in
check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
E subprocess.CalledProcessError: Command '['helm', 'template',
'release-name', '/Users/dstandish/code/airflow/chart', '--values',
'/var/folders/9c/tknx7xx10qx92983y1r5djb40000gn/T/tmpcbo2q6kz',
'--kube-version', '1.29.1', '--namespace', 'default', '--show-only',
'templates/rpc-server/rpc-server-deployment.yaml']' returned non-zero exit
status 1.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]