Skip to content

fix(ci): Exit with subprocess return code in run_ci.py - #2560

Merged
chaokunyang merged 44 commits into
apache:mainfrom
esafak:fix/2555-return_code
Sep 2, 2025
Merged

fix(ci): Exit with subprocess return code in run_ci.py#2560
chaokunyang merged 44 commits into
apache:mainfrom
esafak:fix/2555-return_code

Conversation

@esafak

@esafak esafak commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

Why?

CI was not reflecting failures in shell script fallbacks (we are migrating to python)

What does this PR do?

  • Use sys.exit() to propagate the return code from subprocess.call().
  • This ensures that the CI pipeline correctly reflects the success or failure of the executed scripts.

Related issues

#2555

Notes

You might want to merge #2561 first, to reduce the number of errors.

* Use sys.exit() to propagate the return code from subprocess.call().
* This ensures that the CI pipeline correctly reflects the success or failure of the executed scripts.

Fixes apache#2555
@esafak
esafak force-pushed the fix/2555-return_code branch from 12b63c7 to 92341ba Compare September 2, 2025 00:56
esafak and others added 8 commits September 1, 2025 21:21
*   Modify `setup.py` to include `cwd=project_dir` in `subprocess.check_call`.
*   This ensures that the bazel build command is executed in the project's root directory, preventing potential issues with relative path resolution.
@esafak

esafak commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

You might want to revert c7a1a99

@esafak
esafak force-pushed the fix/2555-return_code branch from dcffc42 to f421ce0 Compare September 2, 2025 04:02
*   Introduce FunctionSerializer for proper serialization of functions and lambdas.
*   Update _registry.py to use FunctionSerializer for function types.
*   Modify test_serializer.py to reflect the new support for functions, ensuring they are no longer treated as unsupported.
*   Add tests in test_function.py to cover various scenarios of function serialization, including simple, complex, and nested functions.
*   Adjust error messages in _fory.py for clarity regarding unregistered types.
@esafak

esafak commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

Can you fix the remaining graal error?

@chaokunyang

Copy link
Copy Markdown
Collaborator

Can you fix the remaining graal error?

I'm working on it, it's a little compilcated

@pandalee99
pandalee99 self-requested a review September 2, 2025 07:28
@chaokunyang
chaokunyang merged commit bb430b0 into apache:main Sep 2, 2025
59 checks passed
chaokunyang added a commit to chaokunyang/fory that referenced this pull request Sep 2, 2025
CI was not reflecting failures in shell script fallbacks (we are
migrating to python)

* Use sys.exit() to propagate the return code from subprocess.call().
* This ensures that the CI pipeline correctly reflects the success or
failure of the executed scripts.

You might want to merge apache#2561 first, to reduce the number of errors.

---------

Co-authored-by: chaokunyang <shawn.ck.yang@gmail.com>
chaokunyang added a commit that referenced this pull request Sep 3, 2025
CI was not reflecting failures in shell script fallbacks (we are
migrating to python)

* Use sys.exit() to propagate the return code from subprocess.call().
* This ensures that the CI pipeline correctly reflects the success or
failure of the executed scripts.

You might want to merge #2561 first, to reduce the number of errors.

---------

Co-authored-by: chaokunyang <shawn.ck.yang@gmail.com>
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.

3 participants