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

cannot create package using service #1551

Open
hramrach opened this issue Apr 28, 2024 · 2 comments
Open

cannot create package using service #1551

hramrach opened this issue Apr 28, 2024 · 2 comments
Labels

Comments

@hramrach
Copy link

Describe the bug
garbage from service runs causes error which causes package to get into unusable state

Versions

  • Operating system: openSUSE Leap 15.5
  • Packages: osc-1.6.2-lp155.2.1.noarch

To Reproduce
Steps to reproduce the behavior:

osc mkpac check-a11y
cd check-a11y
hramrach@localhost:~/home:michals/check-a11y> osc ar
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
A    _service
A    Intall-target.patch
A    check-a11y-0+1695734895.5fd723d.tar.gz
- Update to version 0+1695734895.5fd723d:
A    _service:tar_scm:_servicedata
A    _service:recompress:tar_scm:check-a11y-0+1695734895.5fd723d.tar.gz
A    _service:set_version:check-a11y.spec
A    _servicedata
A    check-a11y.changes
A    check-a11y.spec
A    Fix-qt6.patch
hramrach@localhost:~/home:michals/check-a11y> osc ci
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
Sending meta data...
Done.
Sending    check-a11y
Sending    check-a11y/_service
Sending    check-a11y/Intall-target.patch
Sending    check-a11y/check-a11y-0+1695734895.5fd723d.tar.gz
Sending    check-a11y/_servicedata
Sending    check-a11y/check-a11y.changes
Sending    check-a11y/check-a11y.spec
Sending    check-a11y/Fix-qt6.patch
Transmitting file data ...Server returned an error: HTTP Error 400: Bad Request
service validation error: 2:0: ERROR: Invalid attribute mode for element service
9:0: ERROR: Invalid attribute mode for element service
13:0: ERROR: Invalid attribute mode for element service

If you lost any edited commit messages due to an error, you may find them here:
  - /home/hramrach/.cache/osc/edited-messages/2024-04-28_17:05:10.695973
hramrach@localhost:~/home:michals/check-a11y> ls
check-a11y                              check-a11y.spec.changes.vctmp.P59XTI.changes~
check-a11y-0+1695734895.5fd723d.tar.gz  Fix-qt6.patch
check-a11y.changes                      Intall-target.patch
check-a11y.changes~                     _service
check-a11y.spec                         _service~
check-a11y.spec~                        _servicedata
hramrach@localhost:~/home:michals/check-a11y> rm *~
hramrach@localhost:~/home:michals/check-a11y> osc ar
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
D    _service:set_version:check-a11y.spec
D    _service:recompress:tar_scm:check-a11y-0+1695734895.5fd723d.tar.gz
D    _service:tar_scm:_servicedata
hramrach@localhost:~/home:michals/check-a11y> osc ci
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
package 'check-a11y' already exists
hramrach@localhost:~/home:michals/check-a11y> osc ci
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
package 'check-a11y' already exists
hramrach@localhost:~/home:michals/check-a11y> osc up
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
At revision None.
hramrach@localhost:~/home:michals/check-a11y> osc ci
WARNING: Ignoring config '~/.config/osc/oscrc' in XDG location, loading an existing config from ~/.oscrc instead
         To fix this, remove '~/.oscrc'
package 'check-a11y' already exists

Expected behavior
Package is created with the files included

Additional context
Add any other context about the problem here.

@hramrach hramrach added the Bug label Apr 28, 2024
@dmach
Copy link
Contributor

dmach commented Apr 29, 2024

@hramrach what's the contents of the _service file? Or is there any chance to get to all the files you're using?

@hramrach
Copy link
Author

hramrach commented Apr 29, 2024

It's uploaded to the package in question but I changed the service from 'local' to 'manual'.

Looks like 'local' services run automagically when calling osc build and produce this garbage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants