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

Move release related code outside of the twisted package #3138

Closed
twisted-trac opened this issue Mar 29, 2008 · 13 comments
Closed

Move release related code outside of the twisted package #3138

twisted-trac opened this issue Mar 29, 2008 · 13 comments

Comments

@twisted-trac
Copy link

therve's avatar @therve reported
Trac ID trac#3138
Type enhancement
Created 2008-03-29 18:51:50Z

I don't think it should be in there. We can at least easily move _release.py and the related tests in a top package. We must add a buildbot that also runs these tests though.

Searchable metadata
trac-id__3138 3138
type__enhancement enhancement
reporter__therve therve
priority__normal normal
milestone__ 
branch__ 
branch_author__ 
status__new new
resolution__None None
component__release_management release management
keywords__ 
time__1206816710000000 1206816710000000
changetime__1224447313000000 1224447313000000
version__None None
owner__ 
cc__glyph cc__thijs
@twisted-trac
Copy link
Author

glyph's avatar @glyph commented

In my opinion this does nothing but create an operational hassle (adjusting the buildbots, adjusting each developer's checkout to remember to run the 'release' tests as well, etc).

What problem is this ticket trying to solve? If it's that _release is private and shouldn't be released, or that the code is not related to the rest of twisted.python, perhaps we can have a private twisted._release package - after all, we already have packages excluded from the release.

(If it's something else then please elaborate, but I still have a hunch this is going to create more problems than it solves.)

@twisted-trac
Copy link
Author

therve's avatar @therve commented

My main concern with this code is the direct call to the latex command line. This makes it a functional test, and it appears it doesn't work everywhere: http://www.python.org/dev/buildbot/community/trunk/x86%20Red%20Hat%209%20trunk/builds/1933/step-Twisted.zope.dev/0

@twisted-trac
Copy link
Author

glyph's avatar @glyph commented

Wouldn't it be better to make this test optional, depending on the presence of an appropriate latex setup?

@twisted-trac
Copy link
Author

exarkun's avatar @exarkun commented

Good luck figuring out if a particular latex setup is appropriate or not. :)

@twisted-trac
Copy link
Author

therve's avatar @therve commented

I agree with exarkun. Also, I think we want to remove all the 'skip' in these tests, to be sure that the tests are always run. We want a stable slave with pydoctor (with correct version), latex, etc... that doesn't silently skip the tests.

@twisted-trac
Copy link
Author

exarkun's avatar @exarkun commented

I wonder if the idea of "test resources" (is that what they're called?) from the stdlib test runner would help out here at all.

Splitting the release code into a separate package would help avoid failing tests in cases where no one cares about them, but the same problem applies to SSL and SSH. If you don't have pyOpenSSL, tests should fail. Unless you somehow say you really don't care about SSL. Or maybe it's actually not a similar case.

@twisted-trac
Copy link
Author

therve's avatar @therve commented

I think that's a fairly similar case. I don't know if the skip solution is more elegant or not. The problem with it is that we don't monitor the numbers of skips, ie we don't have "unexpected skips".

@twisted-trac
Copy link
Author

glyph's avatar @glyph commented

Replying to exarkun:

I wonder if the idea of "test resources" (is that what they're called?) from the stdlib test runner would help out here at all.

I have no idea what these are.

Splitting the release code into a separate package would help avoid failing tests in cases where no one cares about them, but the same problem applies to SSL and SSH. If you don't have pyOpenSSL, tests should fail. Unless you somehow say you really don't care about SSL. Or maybe it's actually not a similar case.

I think this is definitely a similar (the same) case. It's just more obvious here that the user has to make a decision because we can't simply look to see whether an import fails or not :).

@twisted-trac
Copy link
Author

glyph's avatar @glyph commented

Also, the idea of making an explicit decision to avoid "unexpected skips" is a great idea. +1.

@twisted-trac
Copy link
Author

thijstriemstra's avatar @thijstriemstra commented

The release related code was removed from trunk/admin not long ago, so this can be closed?

@twisted-trac
Copy link
Author

exarkun's avatar @exarkun commented

The ticket is about removing twisted.python._release and related code, rather than the release code which was in the admin directory.

@twisted-trac
Copy link
Author

Automation's avatar Automation removed owner

@adiroiban
Copy link
Member

The current _release.py has 3 parts:

The plan is to replace these custom scripts with direct CLI calls.

I think that this can be closed as we now have separate tickets for removing each part of the release script

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

No branches or pull requests

2 participants