Historically, the “adt-run” command line has allowed multiple tests; as a consequence, arguments like --binary or --override-control were position dependent, which confused users a lot (#795274, #785068, #795274, LP #1453509). On the other hand I don’t know anyone or any CI system which actually makes use of the “multiple tests on a single command line” feature.
The command line also was a bit confusing in other ways, like the explicit --built-tree vs. --unbuilt-tree and the magic / vs. // suffixes, or option vs. positional arguments to specify tests.
The other long-standing confusion is the pervasive “adt” acronym, which is still from the very early times when “autopkgtest” was called “autodebtest” (this was changed one month after autodebtest’s inception, in 2006!).
Thus in some recent night/weekend hack sessions I’ve worked on a new command line interface and consistent naming. This is now available in autopkgtest 4.0 in Debian unstable and Ubuntu Yakkety. You can download and use the deb package on Debian jessie and Ubuntu ≥ 14.04 LTS as well. (I will provide official backports after the first bug fix release after this got some field testing.)New “autopkgtest” command
The adt-run program is now superseded by autopkgtest:
- It accepts only exactly one tested source package, and gives a proper error if none or more than one (often unintend) is given. Binaries to be tested, --override-control, etc. can now be specified in any order, making the arguments position independent. So you now can do things like:
autopkgtest *.dsc *.deb [...]
Before, *.deb only applied to the following test.
- The explicit --source, --click-source etc. options are gone, the type of tested source/binary packages, including built vs. unbuilt tree, is detected automatically. Tests are now only specified with positional arguments, without the need (or possibility) to explicitly specify their type. The one exception is --installed-click com.example.myapp as possible names are the same as for apt source package names. # Old: adt-run --unbuilt-tree pkgs/foo-2 [...] # or equivalently: adt-run pkgs/foo-2// [...] # New: autopkgtest pkgs/foo-2 # Old: adt-run --git-source http://example.com/foo.git [...] # New: autopkgtest http://example.com/foo.git [...]
- The virtualization server is now separated with a double instead of a tripe dash, as the former is standard Unix syntax.
- It defaults to the current directory if that is a Debian source package. This makes the command line particularly simple for the common case of wanting to run tests in the package you are just changing:
autopkgtest -- schroot sid
Assuming the current directory is an unbuilt Debian package, this will build the package, and run the tests in ./debian/tests against the built binaries.
- The virtualization server must be specified with its “short” name only, e. g. “ssh” instead of “adt-virt-ssh”. They also don’t get installed into $PATH any more, as it’s hardly useful to call them directly.
The old adt-run CLI is still available with unchanged behaviour, so it is safe to upgrade existing CI systems to that version.Image build tools
All adt-build* tools got renamed to autopkgtest-build*, and got changed to build images prefixed with “autopkgtest” instead of “adt”. For example, adt-build-lxc ubuntu xenial now produces an autopkgtest-xenial container instead of adt-xenial.
In order to not break existing CI systems, the new autopkgtest package contains symlinks to the old adt-build* commands, and when being called through them, also produce images with the old “adt-” prefix.Environment variables in tests
Finally there is a set of environment variables that are exported by autopkgtest for using in tests and image customization tools, which now got renamed from ADT_* to AUTOPKGTEST_*:
As these are being used in existing tests and tools, autopkgtest also exports/checks those under their old ADT_* name. So tests can be converted gradually over time (this might take several years).Feedback
Tips and tricks for working with REST module in Drupal 8.
The Public Liberties and Human Rights Center was founded in 2008 as a "desk" within Al Jazeera. Today it is staffed by a diverse team which works across different areas of the network. The editorial team operates on all of Al Jazeera's platforms and in all of the network's languages. The journalists produce original stories and content examining human rights issues around the world, complementing the network's hard-hitting news. Their website contains information about initiatives and events organized by the Center as well as many images and videos related to their projects. In 2015, Vardot developed a new website to bring together all the work Al Jazeera does regarding human right through all its platforms to one hub.
Goal of the project
The goal of Vardot was to build an editor-friendly distribution that will also bring visitors a seamless user experience. The mission was to launch a modern multilingual SEO-optimized website that will be integrated with social networks and have the ability to handle a high traffic.
The right CMS for media networks
Vardot already partnered with Al Jazeera to develop other AJ websites such as Sharek, Forum, Stream and Cafe. All these sites were built on Drupal because the client was looking for a CMS that will be able to handle high traffic, different permission levels, a large number of subpages and at the same time be secure and flexible for users. For the AJ Public Liberties project, we used our very own Drupal 7 distribution, Uber Publisher, that in our opinion ideally meets the needs of the Media producers and Online News Publishers.
The idea of this distribution is easy: most of news websites require the same package of features such as the ability to upload and edit text quickly, create roles and permissions for a better security, add taxonomy terms to organize the content in the convenient way, handle high traffic and more. Uber Publisher does just that. It is a combination of modules, configurations, settings and custom development for online publishers.
Uber Publisher as a competitive advantage
Having the “foundation” of the website ready, our team was able to concentrate on the uniqueness of the Liberties website without wasting time for a basic coding. As a result, the work on the new website of Al Jazeera Public Liberties & Human Rights Centre took less than one month.
Furthermore, we were able to to provide Al Jazeera with many different ways to change the display of content listings to meet their needs at any time. Depending on what Al Jazeera content managers wanted to showcase, the site allows them to feature one main article or multiple articles to tell a story and promote the most important news first.
Building a good website in just one month is very impressive, but we are looking forward to be able to work even faster. After updating Uber Publisher and making it more universal for any kind of online publishing company we expect to decrease not only the time of the development, but also the average total cost of ownership of news websites.
Building sites for enterprise companies always means accepting a big challenge, but our team likes to exceed expectations. Working with Al Jazeera before we’ve learned a lot about our client’s assumptions and ways of working, and this time we’ve just used the experience collected before and made a high-quality website in less than one month. Like Al Jazeera Public Liberties & Human Rights Centre contributes a lot to the awareness of humanitarian organizations, Vardot is happy to add some improvements to Drupal and share our experience with you.Tags: Drupal Planet Title: Rights and Liberty on Your Screen: New Website of Al Jazeera Media Network
We developed the WalkHub Help Widget to help site owners guide their visitors to the right documentation content - right inside an application or web site. You can also set up your own widget creation interface easily - in this blogpost, we will guide you through the steps.
I made a simple implementation of text classification with Recurrent CNN.
It uses chainer, a Deep Learning framework.
Recurrent convolutional neural networks for text classification
Siwei Lai, Liheng Xu, Kang Liu, Jun Zhao, Chinese Academy of Sciences, China