Last modified: 2013-12-20 00:42:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28259, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26259 - Make MediaWiki tarballs not include full set of test suites
Make MediaWiki tarballs not include full set of test suites
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-05 23:47 UTC by MZMcBride
Modified: 2013-12-20 00:42 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2010-12-05 23:47:16 UTC
I ran 'svn up' and got hundreds of Selenium test files and other things I don't want or need. Why is this in trunk? Maybe a dozen a people need these files. Put them elsewhere, please.
Comment 1 Rob Lanphier 2010-12-06 04:43:48 UTC
Could you raise this on wikitech-l?  This was discussed previously there back in September:
http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/thread.html#49425

("Selenium Framework - standard directory for selenium tests")
Comment 2 MZMcBride 2010-12-06 04:56:35 UTC
(In reply to comment #1)
> Could you raise this on wikitech-l?

http://lists.wikimedia.org/pipermail/wikitech-l/2010-December/050523.html
Comment 3 MZMcBride 2010-12-06 19:07:12 UTC
There seems to be consensus that the test suites should stay in the SVN download of phase3. It's still up for debate whether the tarbell should include the "tests" directory.
Comment 4 Rob Lanphier 2010-12-07 04:37:54 UTC
Thanks MZ.  Changing the subject to reflect what is still under discussion.
Comment 5 Mark A. Hershberger 2011-01-31 19:13:49 UTC
Was any decision made on this?  As I recall, it was WONTFIX but since 1.17 is about to come out, maybe it they'll actually be removed from the tarball.
Comment 6 MZMcBride 2011-02-01 02:56:54 UTC
(In reply to comment #5)
> Was any decision made on this?  As I recall, it was WONTFIX but since 1.17 is
> about to come out, maybe it they'll actually be removed from the tarball.

This doesn't make any sense. If there's no firm decision, we should err on the side of keeping the bug open. "WONTFIX" means "we're never, ever going to do this, so stop asking." It doesn't mean "there's no clear decision right now."

Some people like to mark bugs like this as "LATER," but I find that practice rather useless (and somewhat harmful when the bug entries drop off of search results that contain only open bugs). So I'm re-opening this for now.
Comment 7 Quim Gil 2013-03-05 15:31:28 UTC
... Two years later and after moving from SVN to Git: is this still a problem?
Comment 8 Emufarmers 2013-03-05 18:47:58 UTC
(In reply to comment #7)
> ... Two years later and after moving from SVN to Git: is this still a
> problem?

The test suites are still present in the 1.20.3 tarball.
Comment 9 Mark A. Hershberger 2013-03-05 20:26:49 UTC
I had removed them from 1.20.0 -- just verified this -- but obviously my changes didn't get put into the tarball-creation scripts.
Comment 10 Quim Gil 2013-11-19 15:33:59 UTC
Is this bug a good candidate for Google Code-in? Modify the tarball-creation scripts not to include test suites?
 
https://www.mediawiki.org/wiki/Google_Code-In
Comment 11 Mark A. Hershberger 2013-11-20 22:16:41 UTC
Download RC2 -- they shouldn't be in there.  This should be closed.
Comment 12 Andre Klapper 2013-11-21 20:34:20 UTC
If this bug report mentioned the path where to expect these test suites in the tarball, somebody could check with http://download.wikimedia.org/mediawiki/1.22/mediawiki-1.22.0rc2.tar.gz ...
Comment 13 Matthew Flaschen 2013-11-21 21:14:12 UTC
It's reasonable to run test suites on extracted tarballs (e.g. after installing, before the wiki is exposed publicly).  This allows checking that the installation is correct, and there are no compatibility problems.

I think it would be better if there were also a tarball version that included the tests.
Comment 14 Matthew Flaschen 2013-11-21 21:16:25 UTC
(In reply to comment #12)
> If this bug report mentioned the path where to expect these test suites in
> the tarball, somebody could check with
> http://download.wikimedia.org/mediawiki/1.22/mediawiki-1.22.0rc2.tar.gz ...

The path is tests, and they are indeed not in that tarball.
Comment 15 Dan Jacobson 2013-11-22 02:47:28 UTC
Please be sure that the main download advertised to the public does not contain the extra baggage, and only the expert downloads do. Thank you.
Comment 16 Dan Jacobson 2013-11-22 02:50:08 UTC
Same for those who wish to keep their MediaWiki updated via git -- make sure the main one advertised is cleaner, and only the expert ones contain the extra stuff.
Comment 17 Matthew Flaschen 2013-11-22 03:44:34 UTC
(In reply to comment #16)
> Same for those who wish to keep their MediaWiki updated via git -- make sure
> the main one advertised is cleaner, and only the expert ones contain the
> extra stuff.

Tests are an important part of software development, and it is common to keep them in the same repository as the rest of the code.  For MediaWiki in particular, this allows Gerrit reviewers to check that a test is changed/added the same time the application code is, or vice versa.

That means the main core repository will probably continue to hold the tests.
Comment 18 Andre Klapper 2013-11-22 15:18:06 UTC
(In reply to comment #16)
> Same for those who wish to keep their MediaWiki updated via git -- make sure
> the main one advertised is cleaner

Strongly against.  Use .gitignore in your checkout.
Comment 19 Dan Jacobson 2013-11-22 23:43:21 UTC
Well the git download method instructions need to mention how to do that.
Comment 20 Quim Gil 2013-12-19 23:18:15 UTC
(In reply to comment #15)
> Please be sure that the main download advertised to the public does not
> contain
> the extra baggage, and only the expert downloads do. Thank you.

As Matt says in comment 14, stable release don't contain them.

I just checked https://www.mediawiki.org/wiki/Nightlies -- the /tests directory is populated, and I agree with other here that this is A Good Thing.

Including a .gitignore example at https://www.mediawiki.org/wiki/Download_from_Git sounds like a good idea

(In reply to comment #18)
> Use .gitignore in your checkout.

This is about creating a .gitignore file e.g. under /core containing e.g. "tests/**", right?

Please confirm. I will edit https://www.mediawiki.org/wiki/Download_from_Git accordingly, and then we can close this bug.
Comment 21 Matthew Flaschen 2013-12-20 00:18:53 UTC
(In reply to comment #20)

> (In reply to comment #18)
> > Use .gitignore in your checkout.
> 
> This is about creating a .gitignore file e.g. under /core containing e.g.
> "tests/**", right?

I assume you mean the local user doing that, not committing it.

But I don't think gitignore will work for this anyway (gitignore prevents git from adding files by default, or showing them as untracked).

You could do a sparse checkout, but that won't save any bandwidth, so I don't see the benefit.

However, it's not in the tarball, so AFAICT this should be marked fixed.
Comment 22 Quim Gil 2013-12-20 00:42:47 UTC
(In reply to comment #21)
> However, it's not in the tarball, so AFAICT this should be marked fixed.

Indeed. Resolving.

Besides, while downloading the extra MBs for /tests in tarballs every other day might become a nuisance to somebody, if you are downloading from git then you will clone once (with the /tests content, and I don't know how could yyou prevent this first download) and from that point syncing /tests in addition to the rest of directories shouldn't be a big deal.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links