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

Pull Request Checks fail for the Che-Code when a PR is created from a fork #22660

Closed
RomanNikitenko opened this issue Nov 8, 2023 · 8 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@RomanNikitenko
Copy link
Member

RomanNikitenko commented Nov 8, 2023

Describe the bug

I've created a pull request to the Che-Code from a fork.
The Pull Request Check - Dev job fails on the Login to Quay.io step.
See https://github.com/che-incubator/che-code/actions/runs/6794116398/job/18470022496?pr=292

Che version

7.75@latest

Steps to reproduce

  1. Create a pull request to the Che-Code from a fork.
  2. See the corresponding job

Expected behavior

Login to Quay.io step should be successful for the Pull Request Check - Dev job

Additional context

I'm not sure, but maybe the cause of the problem came from the recently merged PR che-incubator/che-code#253

@vitaliy-guliy
could you take a look?

@RomanNikitenko RomanNikitenko added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. labels Nov 8, 2023
@vitaliy-guliy vitaliy-guliy self-assigned this Nov 8, 2023
@vitaliy-guliy
Copy link
Contributor

I do not know how it was working till yesterday, but as it described in the article below, ' secrets are not passed to the runner when a workflow is triggered from a forked repository.'

https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow

@RomanNikitenko
Copy link
Member Author

RomanNikitenko commented Nov 8, 2023

I do not know how it was working till yesterday

could you try to revert your changes and check it?

@vitaliy-guliy
Copy link
Contributor

I see there is only way is specify a separate job to push images like it was before
https://github.com/che-incubator/che-code/blob/7.76.0/.github/workflows/pr-check-image-publish.yml

@azatsarynnyy
Copy link
Member

azatsarynnyy commented Nov 24, 2023

I see there is only way is specify a separate job to push images like it was before https://github.com/che-incubator/che-code/blob/7.76.0/.github/workflows/pr-check-image-publish.yml

yes, we should separate the jobs for building and publishing Che-Code test images:

As it's clearer now 🙂 why we used to have two GH Workflows instead of a single one, I suggest returning to the state of Che-Code GH Workflows that we had before merging che-incubator/che-code@6d47882 with adding some comments why there's a separate Workflow for pushing the images.

@vitaliy-guliy
Copy link
Contributor

I suggest returning to the state of Che-Code GH Workflows that we had before merging che-incubator/che-code@6d47882 with adding some comments why there's a separate Workflow for pushing the images.

What is the point if it does not fix building and pushing che-dev image for pull requests, that were made from a fork?
Che-dev image appeared to be large (more than 2.5 gigabytes) to be used in artifacts to share the images between jobs.

@azatsarynnyy
Copy link
Member

Che-dev image appeared to be large (more than 2.5 gigabytes) to be used in artifacts to share the images between jobs.

@vitaliy-guliy doesn't this step fix the problem?
I don't know for sure, but I suppose it may help.

@vitaliy-guliy
Copy link
Contributor

Che-dev image appeared to be large (more than 2.5 gigabytes) to be used in artifacts to share the images between jobs.

@vitaliy-guliy doesn't this step fix the problem? I don't know for sure, but I suppose it may help.

It increases only the swap file size.
We do not need it as it is possible to build the images without touching the swap.

@vitaliy-guliy
Copy link
Contributor

A pull request fixing the problem has been merged

@github-project-automation github-project-automation bot moved this from Unplanned to ✅ Done in Eclipse Che Team B Backlog Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants