Skip to content

Conversation

@Abacn
Copy link
Contributor

@Abacn Abacn commented Jan 27, 2025

Reverts #33658

@github-actions github-actions bot added the build label Jan 27, 2025
@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

test_basics (apache_beam.examples.complete.distribopt_test.DistribOptimizationTest) failed


ValueError: malformed node or string: <ast.Call object at 0x7c19d073f6a0>
self = <apache_beam.examples.complete.distribopt_test.DistribOptimizationTest testMethod=test_basics>

>     optimum = make_tuple(lines[0])

apache_beam/examples/complete/distribopt_test.py:81: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:107: in literal_eval
    return _convert(node_or_string)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:96: in _convert
    return dict(zip(map(_convert, node.keys),
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:106: in _convert
    return _convert_signed_num(node)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:80: in _convert_signed_num
    return _convert_num(node)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:71: in _convert_num
    _raise_malformed_node(node)

investigate #33765. commit history shows this was the only Python commit between last green run and first red run

@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

@Abacn Abacn marked this pull request as ready for review January 27, 2025 16:45
@github-actions
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

I see, it's due to numpy 2. Tested locally, downgrade numpy to 1 resolved the issue

for reference the command I used:

cd sdks/python

python setup.py bdist build_ext --inplace

pip install .[gcp]

pytest -v apache_beam/examples/complete/distribopt_test.py::DistribOptimizationTest --test-pipeline-options="--runner=TestDirectRunner --project=apache-beam-testing --region=us-central1 --staging_location=gs://temp-storage-for-end-to-end-tests/staging-it --temp_location=gs://temp-storage-for-end-to-end-tests/temp-it --output=gs://temp-storage-for-end-to-end-tests/py-it-cloud/output"

@github-actions
Copy link
Contributor

This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 29, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2025

This pull request has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Apr 6, 2025
@Abacn Abacn deleted the revert-33658-beam-update-python branch July 2, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant