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

CI: Add initial version #2

Merged
merged 9 commits into from
Sep 24, 2023
Merged

CI: Add initial version #2

merged 9 commits into from
Sep 24, 2023

Conversation

Shaikh-Ubaid
Copy link
Collaborator

towards #1

@Shaikh-Ubaid
Copy link
Collaborator Author

@certik the CI does not seem to run. Do we need to enable GitHub actions for this repository?

@Shaikh-Ubaid
Copy link
Collaborator Author

Shaikh-Ubaid commented Sep 23, 2023

@certik the CI does not seem to run. Do we need to enable GitHub actions for this repository?

I am temporarily working here Shaikh-Ubaid#1.

@Shaikh-Ubaid
Copy link
Collaborator Author

From https://github.com/Shaikh-Ubaid/lpython-conda-testing/actions/runs/6282537317/job/17062084700?pr=1,

semantic error: Function 'field' is not declared and not intrinsic
 --> /home/runner/work/lpython-conda-testing/lpython-conda-testing/lpython/integration_tests/array_expr_03.py:8:16
  |
8 |     a: i8[4] = field(default_factory=lambda: empty(4, dtype=int8))
  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 


Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).
semantic error: array accepts only 1 argument for now, got 3107819[61](https://github.com/Shaikh-Ubaid/lpython-conda-testing/actions/runs/6282537317/job/17062084700?pr=1#step:7:62)94145634 arguments instead.
[  1%] Built target variable_decl_02
 --> /home/runner/work/lpython-conda-testing/lpython-conda-testing/lpython/integration_tests/array_expr_04.py:5:17
  |
5 |     a8: i8[4] = array([127, -127, 3, 111], dtype=int8)
  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 


Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).
gmake[2]: *** [CMakeFiles/array_expr_03.dir/build.make:74: array_expr_03.o] Error 2
[  1%] Built target array_expr_01
gmake[1]: *** [CMakeFiles/Makefile2:936: CMakeFiles/array_expr_03.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: *** [CMakeFiles/array_expr_04.dir/build.make:74: array_expr_04.o] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:9[62](https://github.com/Shaikh-Ubaid/lpython-conda-testing/actions/runs/6282537317/job/17062084700?pr=1#step:7:63): CMakeFiles/array_expr_04.dir/all] Error 2
[  1%] Generating array_expr_06.o
[  1%] Generating array_expr_05.o
[  1%] Built target array_expr_02
semantic error: array accepts only 1 argument for now, got 31078196194145[63](https://github.com/Shaikh-Ubaid/lpython-conda-testing/actions/runs/6282537317/job/17062084700?pr=1#step:7:64)4 arguments instead.
 --> /home/runner/work/lpython-conda-testing/lpython-conda-testing/lpython/integration_tests/array_expr_06.py:5:19
  |
5 |     a32: f32[4] = array([127, -127, 3, 111], dtype=float32)
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I think at the moment we need to make a new release with the latest LPython.

@Shaikh-Ubaid
Copy link
Collaborator Author

I drafted a new release here https://github.com/lcompilers/lpython/releases/tag/untagged-41add913e85eff81ce2d.

Shall I publish it?

@certik
Copy link
Contributor

certik commented Sep 23, 2023

Yes, call it 0.20.0. We should only increase the patch version for patches (such as those that will be discovered by this repository).

environment.yml Outdated
- lpython=0.19.0
- nodejs
- make
- cmake
Copy link
Contributor

Choose a reason for hiding this comment

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

Put exact versions for all dependencies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, got it.

shell: bash -e -l {0}
run: |
git clone https://github.com/lcompilers/lpython.git
git checkout 2293972e5ce377787d134541f8363ae441030b76
Copy link
Contributor

Choose a reason for hiding this comment

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

For easiness of maintenance, perhaps here we can just checkout the corresponding "tag" from environment.yml, so:

git checkout v0.19.0

The git hash is more robust, but here I think we will be updating this version very often, so I think it's fine to use the tag. We assume that we do not change tags once published (we've never done that so far), so it should be robust.

In other cases when we use a branch, that is fragile, since branches move.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

Perfect, I think this is exactly how to do it.

@Shaikh-Ubaid
Copy link
Collaborator Author

@certik Do you know why the CI here does not run?

@certik
Copy link
Contributor

certik commented Sep 23, 2023

You have to merge it first, and possibly setup in Settings. You should have the rights to do it. If not, please ping me.

@Shaikh-Ubaid
Copy link
Collaborator Author

You have to merge it first, and possibly setup in Settings.

Got it.

You should have the rights to do it. If not, please ping me.

I can see the following options in the repository settings. I could not find options related to GitHub actions in these.

@Shaikh-Ubaid
Copy link
Collaborator Author

As it seems approved, I am (squash) merging this temporarily. I will fix this further in a separate/new PR.

@Shaikh-Ubaid Shaikh-Ubaid merged commit 177c153 into lcompilers:main Sep 24, 2023
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