Comments (8)
Try updating the link in .pre-commit-config.yaml
instead of https://gitlab.com/PyCQA/flake8
use https://github.com/PyCQA/flake8
from aicoe-ci.
Try updating the link in
.pre-commit-config.yaml
instead ofhttps://gitlab.com/PyCQA/flake8
usehttps://github.com/PyCQA/flake8
wow, thank you, that was the issue.
And my excuse, I really forgot to notice the content of .pre-commit-config.yaml
in the question. So, thank you for your insight into the issue
from aicoe-ci.
might that be a problem with PSI? can we install all that stuff into the container image that runs pre-commit?
from aicoe-ci.
/priority important-soon
from aicoe-ci.
This issue was not observed anymore.
from aicoe-ci.
I faced with an issue recently in GitHub runner:
Initialized empty Git repository in /opt/.git/
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
return code: 12[8](https://github.com/ALMAServicesCompany/kandym-service/actions/runs/3471185214/jobs/5800347257#step:5:9)
expected return code: 0
stdout: (none)
stderr:
fatal: could not read Username for 'https://gitlab.com/': No such device or address
Check the log at /root/.cache/pre-commit/pre-commit.log
Error: Process completed with exit code 1.
with command in .github/workflows/ci.yaml
- name: Run linters in the container
run:
docker run
--entrypoint=""
${{ github.event.repository.name }}:0.0
/bin/sh -c 'git init . && git add . && pre-commit run --all-files'
Dockerfile for the flow above (so with it you can reproduce an issue):
FROM python:3.8.8-slim
WORKDIR /opt
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get -y install gcc libpq-dev python3-dev netcat git
RUN pip install --upgrade pip
#I commented string below for #53 issue
#COPY requirements.test.txt /opt/.
#I commented string below for #53 issue
#RUN pip install -r /opt/requirements.test.txt
#I commented string below for #53 issue
#COPY entrypoint.sh /opt/.
COPY . /opt/
Reproduce
docker build -f Dockerfile . --tag rm_test:0.0
docker run rm_test:0.0 /bin/sh -c 'git init . && git add . && pre-commit run --all-files'
from aicoe-ci.
@AlcibiadesCleinias which repository are you facing this issue in ?
from aicoe-ci.
Glad to help.
Thanks for the question.
from aicoe-ci.
Related Issues (20)
- Upgrade tekton triggers version from 0.12.1-0.14.2 and update tekton pipeline to 0.24.3 HOT 8
- Add Tekton Chains to AICoE-CI deployment on op1st HOT 6
- Create a general documentation for Thoth CI/CD Pipelines HOT 6
- Help with Sesheta invite HOT 1
- Pull images from private registries HOT 4
- Help with Sesheta invite HOT 5
- Update the aicoe-ci docs HOT 4
- New major release HOT 1
- New minor release HOT 1
- onboarding-issue-task will need to be updated with latest opfcli changes HOT 4
- Help with Sesheta invite HOT 3
- Failed to update base image versions on elyra-aidevsecops-tutorial repository HOT 7
- [3pt] Task to create PR for stage and prod update of components to the manifest repo. HOT 4
- Create a task for thoth-github-action testing HOT 1
- Add shared cache to pre-commit pipelines HOT 1
- Help with Sesheta invite HOT 9
- Typo in Sesheta invitation handling text HOT 4
- #184 failed argocd sync HOT 2
- build from main HOT 5
- No response on cmd /deploy on overlays pattern repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aicoe-ci.