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

[BUG] CI pipe line was failed #629

Open
sio-funmatsu opened this issue Sep 20, 2024 · 3 comments
Open

[BUG] CI pipe line was failed #629

sio-funmatsu opened this issue Sep 20, 2024 · 3 comments
Labels
bug triage Issues that need to be looked at

Comments

@sio-funmatsu
Copy link

Description

I noticed that the CI pipeline for the iotedgedev project seems to be failing, and as a result, the latest version of the package is not being updated on PyPI. I wanted to bring this to your attention as it is affecting our ability to use the latest features and fixes.

Expected behavior

The CI pipeline should succeed, and the latest version of iotedgedev should be published on PyPI.

Actual behavior

The CI pipeline is failing, and the PyPI version is not being updated to reflect the latest changes.

Steps to Reproduce

Rerun the CI

Environment

v3.3.8

@sio-funmatsu sio-funmatsu added bug triage Issues that need to be looked at labels Sep 20, 2024
@maggiojoe2
Copy link

maggiojoe2 commented Dec 9, 2024

Adding more context as I am having the same issue as of a few weeks ago. This is the error I am seeing when I enable debugging:

##[debug]found: '/usr/bin/sudo'
##[debug]/usr/bin/sudo arg: pip3 install iotedgedev==3.3.3
##[debug]/usr/bin/sudo arg: pip3 install iotedgedev==3.3.3
##[debug]   install
##[debug]   iotedgedev==3.3.3
##[debug]   iotedgedev==3.3.3
##[debug]
##[debug]ERROR: Could not find a version that satisfies the requirement iotedgedev==3.3.3 (from versions: 0.79.0, 0.80.0, 0.81.0, 0.82.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 2.0.0, 2.0.1, 2.0.2, 2.1.0)
ERROR: No matching distribution found for iotedgedev==3.3.3

##[debug]which 'iotedgedev'
##[debug]not found
##[debug]task result: Failed
##[error]Error: Unable to locate executable file: 'iotedgedev'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

I am using ubuntu-latest for my vmImage. I have tried with other versions of ubuntu with no luck.

Previously, I had manually installed iotedgedev with pip, but that is also throwing errors.

@ko16a46
Copy link

ko16a46 commented Dec 17, 2024

I ran into this issue as well. This is actually a bug observed when using the AzureIoTEdge@2 task in the Azure Pipeline Tasks repo, but it seems the root cause for the issue is the python dependency logic in this project

Like @maggiojoe2 I tried prior workarounds like using other versions of ubuntu, manually installing iotedgedev with pip, or setting the IOTEDGEDEV_VERSION to 2.1.0. All of these failed for me. Not to mention, the solution isn't ideal because we end up using an older version of iotedgedev

In the end, I got it working by switching to windows-2022 as the vmImage, but this now causes issues with building edge modules on Windows. Some form of python dependency pinning needs to be done in this project perhaps, at least according to this guy's suggestions.

@ko16a46
Copy link

ko16a46 commented Dec 17, 2024

Update: I got it working by using the UsePythonVersion task to set the python version to 3.9 (which is apparently the latest version supported by iotedgehubdev which is a dependency of iotedgedev).

Then I manually installed iotedgedev with a bash script pip3 install iotedgedev.
The AzureIoTEdge task uses sudo pip3 install iotedgedev under the hood, but the sudo version of pip3 isn't affected by UsePythonVersion so the install fails. By manually installing iotedgedev after lowering the python version, the CI pipeline now works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues that need to be looked at
Projects
None yet
Development

No branches or pull requests

3 participants