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

Inconsistent behaviour for source files given by create_archive for top-level actions and job actions #569

Open
pirat89 opened this issue Nov 12, 2021 · 7 comments
Labels
kind/bug Something isn't working.

Comments

@pirat89
Copy link
Contributor

pirat89 commented Nov 12, 2021

We have realized the top-level actions & job actions have a different behaviour regarding the sources. We know it's documented the sources have to be present in the same directory as the SPEC file, but in case they are present a subdir instead (e.g. SOURCES), PackIt works in case of the top-level actions, and crashes in case of the job actions. E.g.:

actions:
  create-archive:
  - bash -c "rm -f packaging/*.tar.gz"
  - bash -c "make source"
  - bash -c "find packaging/*.gz -type f"

jobs:
- job: copr_build
  trigger: pull_request
  metadata:
    owner: "@oamg"
    project: leapp
    targets:
    - epel-7-x86_64
    - epel-8-x86_64
  actions:
    create-archive:
    - bash -c "rm -f packaging/*.tar.gz"
    - bash -c "make source"
    - bash -c "find packaging/*.gz -type f"

In both cases, multiple source files are under the packaging/sources/ directory (the removal points to a different path to ensure the files are not present in the same directory).

See the following file for better context (removing the "mv" commands shows the behaviour differences; currently it's working):

Expected result:

  • consistent behaviour regarding the source files is same regardless the top-level or nested (job) actions; read: require source files in the same directory as the SPEC file, or accept given source files from other directories as well

Additional info:

  • we are aware the job copr_build is not executed when we call packit srpm from the CLI. We discovered the different behaviour when putting the create-archive action the top-level and then under the job on the github directly and we checked that all commands in the create-archive action have been really called in both cases. When nested, tarballs are not discovered by packit.
@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been marked as stale because it hasn't seen any
activity for the last 60 days.

Stale issues are closed after 14 days, unless the label is removed
by a maintainer or someone comments on it.

This is done in order to ensure that open issues are still relevant.

Thank you for your contribution! 🦄 🚀 🤖

(Note: issues labeled with pinned or EPIC are
never marked as stale.)

@stale stale bot added the stale Is the issue still valid? label Mar 2, 2022
@pirat89
Copy link
Contributor Author

pirat89 commented Mar 2, 2022

I think this issue is worthy to solve

@stale stale bot removed the stale Is the issue still valid? label Mar 2, 2022
@stale
Copy link

stale bot commented May 1, 2022

This issue has been marked as stale because it hasn't seen any
activity for the last 60 days.

Stale issues are closed after 14 days, unless the label is removed
by a maintainer or someone comments on it.

This is done in order to ensure that open issues are still relevant.

Thank you for your contribution! 🦄 🚀 🤖

(Note: issues labeled with pinned or EPIC are
never marked as stale.)

@stale stale bot added the stale Is the issue still valid? label May 1, 2022
@TomasTomecek TomasTomecek added the kind/bug Something isn't working. label Jun 1, 2022
@stale stale bot removed the stale Is the issue still valid? label Jun 1, 2022
@TomasTomecek
Copy link
Member

Agreed, this should be resolved.

@stale
Copy link

stale bot commented Jul 31, 2022

This issue has been marked as stale because it hasn't seen any
activity for the last 60 days.

Stale issues are closed after 14 days, unless the label is removed
by a maintainer or someone comments on it.

This is done in order to ensure that open issues are still relevant.

Thank you for your contribution! 🦄 🚀 🤖

(Note: issues labeled with pinned or EPIC are
never marked as stale.)

@stale stale bot added the stale Is the issue still valid? label Jul 31, 2022
@csomh csomh removed the stale Is the issue still valid? label Aug 1, 2022
@TomasTomecek
Copy link
Member

We have recently discussed this issue that the behaviour should be changed so that you don't need to copy-pasta the actions that should be inherited.

@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been marked as stale because it hasn't seen any
activity for the last 60 days.

Stale issues are closed after 14 days, unless the label is removed
by a maintainer or someone comments on it.

This is done in order to ensure that open issues are still relevant.

Thank you for your contribution! 🦄 🚀 🤖

(Note: issues labeled with pinned or EPIC are
never marked as stale.)

@stale stale bot added the stale Is the issue still valid? label Nov 2, 2022
@TomasTomecek TomasTomecek removed the stale Is the issue still valid? label Dec 5, 2022
@TomasTomecek TomasTomecek transferred this issue from packit/packit Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working.
Projects
Status: backlog
Development

No branches or pull requests

3 participants