[oi-dev] [HEADSUP] IPS update in OpenIndiana Hipster
Alexander Pyhalov
alp at rsu.ru
Sat Jun 6 07:00:39 UTC 2015
Hello.
I'm glad to inform you that I've just updated IPS to version close to
2015 Oracle IPS, based on work which Igor Kozhukhov has done for
EveryCity (https://github.com/everycity/pkg5/tree/ec-py27-ec-zones ).
I've checked that all basic operations work. Also checked work with
zones. Now our IPS supports linked images. The most interesting for me
in this update is migration to Python 2.7.
Basic operations work with both python versions, but test suite
discovers that there are some incompatibilities with Python2.6. I
suppose in everyday usage you'll hardly notice this, but if you do, set
python mediator to 2.7 version. In any case we are going to move to
Python 2.7 as our main system Python soon.
Now, about tests.
I've checked illumos-gate publishing, oi-userland work, pkg.depotd work
and IPS testsuite. After adopting IPS tests to illumos and changes
specific to OI IPS, we have the following list of failed tests (tests
were run with python mediator set to python 2.7, this fixed some of
them):
cli.t_pkgdep.py TestPkgdepBasics.test_PEP_3149: fail
cli.t_pkgdep.py TestPkgdepBasics.test_bug_13059: fail
cli.t_pkgdep.py TestPkgdepBasics.test_python_combinations: error
cli.t_pkg_info.py TestPkgInfoBasics.test_ranked: fail
Three first fail because they want Python 3.4 IPS modules, but we don't
compile or ship them.
The last one fails because of date format mismatch. I suggest, it could
be related to locales differences between illumos and Solaris, but not
sure.
The output from this last test is the following:
cli.t_pkg_info.py TestPkgInfoBasics.test_ranked
MISMATCH FAIL (expected: pass)#
# .---Failure Information-------------------------------
# |
___________________________________________________________________________
# | Start: cli.t_pkg_info.py TestPkgInfoBasics.test_ranked
# | Verify that pkg info -r returns expected results when
# | multiple publishers provide the same package based on
# | publisher search order.
# |
___________________________________________________________________________
# | created repository /tmp/ips.test.2749/0/test-ranked
# | $
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgrepo
\
# | -D \
# |
ignored_deps=/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/share/pkg/ignored_deps
\
# | add-publisher -s /tmp/ips.test.2749/0/test-ranked test
# | $ cd /tmp/ips.test.2749/0; \
# |
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgsend
\
# | -D allow-timestamp -s /tmp/ips.test.2749/0/test-ranked publish
-d \
# | /tmp/ips.test.2749/0 /tmp/ips.test.2749/0/tmpL7TrSI
# | pkg://test/bronze@1.0,5.11-0:20110908T004546Z
# | PUBLISHED
# | $ export PKG_TRANS_ID=
# | $ cd /tmp/ips.test.2749/0; \
# |
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgsend
\
# | -D allow-timestamp -s /tmp/ips.test.2749/0/test-ranked publish
-d \
# | /tmp/ips.test.2749/0 /tmp/ips.test.2749/0/tmpCtNtWF
# | pkg://test/human@0.9.8.18,5.11-0:20110908T004546Z
# | PUBLISHED
# | $ export PKG_TRANS_ID=
# | $
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgrepo
\
# | -D \
# |
ignored_deps=/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/share/pkg/ignored_deps
\
# | add-publisher -s /tmp/ips.test.2749/0/test-ranked test2
# | $
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgrepo
\
# | -D \
# |
ignored_deps=/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/share/pkg/ignored_deps
\
# | set -s /tmp/ips.test.2749/0/test-ranked publisher/prefix=test2
# | $ cd /tmp/ips.test.2749/0; \
# |
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgsend
\
# | -D allow-timestamp -s /tmp/ips.test.2749/0/test-ranked publish
-d \
# | /tmp/ips.test.2749/0 /tmp/ips.test.2749/0/tmpnk26ke
# | pkg://test2/bronze@1.0,5.11-0:20110908T004546Z
# | PUBLISHED
# | $ export PKG_TRANS_ID=
# | $
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgrepo
\
# | -D \
# |
ignored_deps=/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/share/pkg/ignored_deps
\
# | add-publisher -s /tmp/ips.test.2749/0/test-ranked test3
# | $
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgrepo
\
# | -D \
# |
ignored_deps=/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/share/pkg/ignored_deps
\
# | set -s /tmp/ips.test.2749/0/test-ranked publisher/prefix=test3
# | $ cd /tmp/ips.test.2749/0; \
# |
/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i386/usr/bin/pkgsend
\
# | -D allow-timestamp -s /tmp/ips.test.2749/0/test-ranked publish
-d \
# | /tmp/ips.test.2749/0 /tmp/ips.test.2749/0/tmp74Rm8b
# | pkg://test3/bronze@1.0,5.11-0:20110908T004546Z
# | PUBLISHED
# | $ export PKG_TRANS_ID=
# | image_destroy /tmp/ips.test.2749/0/image0
# | image_create /tmp/ips.test.2749/0/image0
# | $ /tmp/ips.test.2749/fakeroot/pkg -R /tmp/ips.test.2749/0/image0 -D
\
# | plandesc_validate=1 -D manifest_validate=Always -D \
# | smf_cmds_dir=/tmp/ips.test.2749/0/smf_cmds set-publisher -p \
# | /tmp/ips.test.2749/0/test-ranked
# | Startup: Refreshing catalog 'test' ... Done
# | Startup: Refreshing catalog 'test2' ... Done
# | Startup: Refreshing catalog 'test3' ... Done
# | Startup: Caching catalogs ... Done
# | pkg set-publisher:
# | Added publisher(s): test, test2, test3
# | $ /tmp/ips.test.2749/fakeroot/pkg -R /tmp/ips.test.2749/0/image0 -D
\
# | plandesc_validate=1 -D manifest_validate=Always -D \
# | smf_cmds_dir=/tmp/ips.test.2749/0/smf_cmds info -r bronze human
# | Name: bronze
# | State: Not installed
# | Publisher: test
# | Version: 1.0
# | Branch: 0
# | Packaging Date: Thu Sep 8 00:45:46 2011
# | Size: 54.00 B
# | FMRI: pkg://test/bronze@1.0-0:20110908T004546Z
# | Name: human
# | State: Not installed
# | Publisher: test
# | Version: 0.9.8.18 (0.9.8r)
# | Branch: 0
# | Packaging Date: Thu Sep 8 00:45:46 2011
# | Size: 0.00 B
# | FMRI: pkg://test/human@0.9.8.18-0:20110908T004546Z
# | Traceback (most recent call last):
# | File "./pkg5unittest.py", line 732, in run
# | testMethod()
# | File "./api/../cli/t_pkg_info.py", line 495, in test_ranked
# | self.assertEqualDiff(expected, self.reduceSpaces(self.output))
# | File "./pkg5unittest.py", line 961, in assertEqualDiff
# | "Expected output", "Actual output", lineterm="")))
# | AssertionError: Actual output differed from expected output
# | --- Expected output
# | +++ Actual output
# | @@ -3,7 +3,7 @@
# | Publisher: test
# | Version: 1.0
# | Branch: 0
# | -Packaging Date: Thu Sep 08 00:45:46 2011
# | +Packaging Date: Thu Sep 8 00:45:46 2011
# | Size: 54.00 B
# | FMRI: pkg://test/bronze@1.0-0:20110908T004546Z
# | @@ -12,6 +12,6 @@
# | Publisher: test
# | Version: 0.9.8.18 (0.9.8r)
# | Branch: 0
# | -Packaging Date: Thu Sep 08 00:45:46 2011
# | +Packaging Date: Thu Sep 8 00:45:46 2011
# | Size: 0.00 B
# | FMRI: pkg://test/human@0.9.8.18-0:20110908T004546Z
# `-----------------------------------------------------
--
System Administrator of Southern Federal University Computer Center
More information about the oi-dev
mailing list