[oi-dev] Update IPS from https://github.com/everycity/pkg5/tree/ec-py27-ec-zones
Igor Kozhukhov
ikozhukhov at gmail.com
Thu Jun 4 17:35:35 UTC 2015
Hi Alexander, All,
I think, tests should be updated to use gcc as build compiler.
About another failed tests - will be better try to update python to 2.7.9
and check it again with python2.7 as primary python.
If you can use new pkg5 now with both python 2.6 & 2.7 - it is fine with
transition period and update env to use python2.7 as primary.
It¹s not easy and need additional work.
Also - it is not easy try to switch pkg5 to use python2.7 by one pkg
update¹ - I think you need identify some temporary steps or probably
through additional repo/publisher.
I did some updates with manual override some files on local build env and
re-install final packages over.
But I did it in zone, where I no need to check/to use beadm.
And congrats with fantastic work! :)
--
Best regards,
Igor Kozhukhov
On 04/06/15 19:35, "Alexander Pyhalov" <alp at rsu.ru> wrote:
>Hello.
>
>I'm working on IPS update now. I used
>https://github.com/everycity/pkg5/tree/ec-py27-ec-zones for reference to
>leverage great Igor work on updating IPS for EveryCity.
>
>Branch with new IPS is here:
>https://github.com/pyhalov/pkg5/tree/oi-updates
>
>Note, that you'll need python2.6 IPS modules for now to compile
>illumos-gate or oi-userland, and python 2.6 IPS bits are mostly working,
>however pkg.depotd suggests using rather fresh Python2.7 (>=2.7.9).
>Routine operations works for both python2.6 and 2.7.
>You will have to compile libbe with python2.7 to be able to use boot
>environments with Python (we provide library/python-2/libbe-27 in
>oi-userland).
>
>As executables don't meniton explicit python version, pkgdepend can't
>generate correct IPS dependencies for them and it should be done
>manually (included in update).
>
>
>Test resulsts are the following. All usual operations, as
>installing/updating packages work. ipkg zones work. IPS now knows about
>linked images and using -r switch you can make recursive operations on
>base system and zones.
>
># Ran 1045 tests in 10496.098s - skipped 8 tests.
>Skipped tests:
>cli.t_pkgdep.py TestPkgdepBasics.test_bug_12697: Test Skipped: No
>suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc', '$CC'].
> Try setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_bug_15843: Test Skipped: No
>suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc', '$CC'].
> Try setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_bug_17808: Test Skipped: No
>suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc', '$CC'].
> Try setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_elf_dependency_tags: Test Skipped:
>No suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc',
>'$CC']. Try setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_elf_warning: Test Skipped: No
>suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc', '$CC'].
> Try setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_output: Test Skipped: No suitable
>Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc', '$CC']. Try
>setting $CC to a validcompiler.
>cli.t_pkgdep.py TestPkgdepBasics.test_relative_run_path: Test Skipped:
>No suitable Sun Studio compiler found. Tried: ['/usr/bin/cc', 'cc',
>'$CC']. Try setting $CC to a validcompiler.
>cli.t_pkg_help.py TestPkgHelp.test_help_character_encoding: Test
>Skipped: The test system must have the ja_JP.eucJP locale installed to
>run this test.
>
>FAILED (successes=1036, failures=8, errors=1, mismatches=9)
>
>======================================================================
>BASELINE MISMATCH: The following results didn't match the baseline.
>----------------------------------------------------------------------
>api.t_pkg_api_install.py TestPkgApiInstall.test_ipkg_out_of_date: fail
>cli.t_pkgdep.py TestPkgdepBasics.test_PEP_3149: fail
>cli.t_pkgdep.py TestPkgdepBasics.test_bug_13059: fail
>cli.t_pkgdep.py TestPkgdepBasics.test_multiple_run_paths: fail
>cli.t_pkgdep.py TestPkgdepBasics.test_python_combinations: error
>cli.t_pkg_install.py TestPkgInstallUpgrade.test_upgrade1: fail
>cli.t_pkgrecv.py TestPkgrecvMulti.test_2_recv_compare: fail
>cli.t_pkg_info.py TestPkgInfoBasics.test_ranked: fail
>cli.t_fix.py TestFix.test_06_download: fail
>cli.t_pkg_linked.py TestPkgLinkedScale.test_li_scale: fail
>----------------------------------------------------------------------
>
>Mismatches are related to the following.
>
>1) api.t_pkg_api_install.py TestPkgApiInstall.test_ipkg_out_of_date
>This one also fails on our current IPS.
>
>
>MISMATCH FAIL (expected: pass)#
># .---Failure Information-------------------------------
># |
>__________________________________________________________________________
>_
># | Start: api.t_pkg_api_install.py
>TestPkgApiInstall.test_ipkg_out_of_date
># | Make sure that packaging system out-of-date testing works.
># |
>__________________________________________________________________________
>_
># | $ echo '#!/usr/bin/python [+5 lines...]' > \
># | /tmp/ips.test.4335/0/smf_cmds/usr/bin/svcprop
># | image 0 selected: /tmp/ips.test.4335/0/image0
># | setup: api.t_pkg_api_install.TestPkgApiInstall.test_ipkg_out_of_date
># | creating 1 repo(s)
># | publishers: ['test']
># | debug_features: []
># | prep_depot: set depot port 12001
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents1
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile1
># | created repository /tmp/ips.test.4335/0/repo_contents1
># | $ echo 'tmp/baz' > /tmp/ips.test.4335/0/tmp/baz
># | $ echo 'tmp/cat' > /tmp/ips.test.4335/0/tmp/cat
># | $ echo 'tmp/libc.so.1' > /tmp/ips.test.4335/0/tmp/libc.so.1
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpKtTbpR
># | pkg://test/foo@1.0,5.11-0:20150604T120604Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpUUorD8
># | pkg://test/foo@1.2,5.11-0:20150604T120604Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmp_UUM_q
># |
>pkg://test/consolidation/ips/ips-incorporation@1.0,5.11-0:20150604T120604Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpVbqkgp
># |
>pkg://test/consolidation/ips/ips-incorporation@2.0,5.11-0:20150604T120604Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpPx8lP1
># | pkg://test/package/pkg@1.0,5.11-0:20150604T120605Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmp1s5n6D
># | pkg://test/package/pkg@1.1,5.11-0:20150604T120605Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpsBw0PH
># | pkg://test/package/pkg@2.0,5.11-0:20150604T120605Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpuZszo5
># | pkg://test/SUNWipkg@1.0,5.11-0:20150604T120606Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpWS2OPB
># | pkg://test/SUNWipkg@1.1,5.11-0:20150604T120606Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpzNDYMX
># | pkg://test/SUNWcs@1.0,5.11-0:20150604T120606Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpdyVVg1
># | pkg://test/release/name@1.0,5.11-0:20150604T120607Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpKA3Hgk
># | pkg://test/release/name@2.0,5.11-0:20150604T120607Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | image_create /tmp/ips.test.4335/0/image0
># | Traceback (most recent call last):
># | File "./pkg5unittest.py", line 732, in run
># | testMethod()
># | File "./api/t_pkg_api_install.py", line 601, in
>test_ipkg_out_of_date
># | lambda *args, **kwargs: list(
># | AssertionError: IpkgOutOfDateException not raised
># `-----------------------------------------------------
>
>2) Several tests fail because they expect to find python3.4 pkg modules,
>but we provide only python2.6 and 2.7:
>
>cli.t_pkgdep.py TestPkgdepBasics.test_PEP_3149
>cli.t_pkgdep.py TestPkgdepBasics.test_bug_13059
>cli.t_pkgdep.py TestPkgdepBasics.test_python_combinations
>
>
>3) cli.t_pkgdep.py TestPkgdepBasics.test_multiple_run_paths
># .---Failure Information-------------------------------
># |
>__________________________________________________________________________
>_
># | Start: cli.t_pkgdep.py TestPkgdepBasics.test_multiple_run_paths
># | Test that specifying multiple $PKGDEPEND_RUNPATH tokens
># | results in an error.
># |
>__________________________________________________________________________
>_
># | $ echo '#!/usr/bin/python [+5 lines...]' > \
># | /tmp/ips.test.4335/0/smf_cmds/usr/bin/svcprop
># | image 0 selected: /tmp/ips.test.4335/0/image0
># | setup: cli.t_pkgdep.TestPkgdepBasics.test_multiple_run_paths
># | creating 1 repo(s)
># | publishers: ['test']
># | debug_features: []
># | prep_depot: set depot port 12001
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents1
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile1
># | created repository /tmp/ips.test.4335/0/repo_contents1
># | $ /tmp/ips.test.4335/fakeroot/pkg image-create -F -p \
># | test=file:///tmp/ips.test.4335/0/repo_contents1 \
># | /tmp/ips.test.4335/0/image0
># | Retrieving catalog 'test' ... Done
># | Caching catalogs ... Done
># | $ echo '#!/usr/bin/python2.7' > /tmp/ips.test.4335/0/proto/etc/file.py
># | $ echo 'set name=pkg.fmri value=pkg:/a at 0.5.11,5.11-0.160 [+1 \
># | lines...]' > /tmp/ips.test.4335/0/manifests/mfst.AnwBCd
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgdepend
>\
># | generate -d /tmp/ips.test.4335/0/proto \
># | /tmp/ips.test.4335/0/manifests/mfst.AnwBCd
># | depend fmri=__TBD pkg.debug.depend.file=python2.7
>pkg.debug.depend.path=usr/bin pkg.debug.depend.reason=etc/file.py
>pkg.debug.depend.type=script type=require
># | The command python2.7
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py
>etc /tmp/ips.test.4335/0/proto/etc/file.py $PKGDEPEND_RUNPATH
>$PKGDEPEND_RUNPATH
># | exited with return code 1 and this message:
># | Traceback (most recent call last):
># | File
>"/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i
>386/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py",
>line 397, in <module>
># | sys.stdout.write("{0}\n".format(e))
># | File
>"/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i
>386/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py",
>line 103, in __str__
># | return _(
># | NameError: global name '_' is not defined
># | [exited 1, expected 1]
># | Traceback (most recent call last):
># | File "./pkg5unittest.py", line 732, in run
># | testMethod()
># | File "./api/../cli/t_pkgdep.py", line 2701, in
>test_multiple_run_paths
># | self.check_res(expected, self.errout)
># | File "./api/../cli/t_pkgdep.py", line 1147, in check_res
># | raise e
># | AssertionError: Actual output differed from expected output
># | --- Expected output
># | +++ Actual output
># | @@ -1 +1,8 @@
># | -set(['More than one $PKGDEPEND_RUNPATH token was set on the same
>action in this manifest.'])
># | +set([' return _(',
># | + ' sys.stdout.write("{0}\\n".format(e))',
># | + ' File
>"/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i
>386/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py",
>line 103, in __str__',
># | + ' File
>"/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i
>386/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py",
>line 397, in <module>',
># | + "NameError: global name '_' is not defined",
># | + 'The command python2.7
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/lib/python2.7/vendor-packages/pkg/flavor/depthlimitedmf.py
>etc /tmp/ips.test.4335/0/proto/etc/file.py $PKGDEPEND_RUNPATH
>$PKGDEPEND_RUNPATH',
># | + 'Traceback (most recent call last):',
># | + 'exited with return code 1 and this message:'])
># `-----------------------------------------------------
>
>
>4) cli.t_pkg_install.py TestPkgInstallUpgrade.test_upgrade1
>MISMATCH FAIL (expected: pass)#
># .---Failure Information-------------------------------
># |
>__________________________________________________________________________
>_
># | Start: cli.t_pkg_install.py TestPkgInstallUpgrade.test_upgrade1
># | Upgrade torture test.
># | Send package amber at 1.0, bronze1.0; install bronze1.0, which
># | should cause amber to also install.
># | Send 2.0 versions of packages which contains a lot of
># | complex transactions between amber and bronze, then do
># | an update, and try to check the results.
># |
>__________________________________________________________________________
>_
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmp3VsNgk
># | pkg://test/incorp@1.0,5.11-0:20150604T125527Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmp79TY1O
># | pkg://test/amber@1.0,5.11-0:20150604T125527Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpO4FsF6
># | pkg://test/bronze@1.0,5.11-0:20150604T125528Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpRq_9Ol
># | pkg://test/incorp@2.0,5.11-0:20150604T125528Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpuhzezG
># | pkg://test/amber@2.0,5.11-0:20150604T125529Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s file:///tmp/ips.test.4335/0/repo_contents1 \
># | publish -d /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpTrXIzI
># | pkg://test/bronze@2.0,5.11-0:20150604T125529Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | image_destroy /tmp/ips.test.4335/0/image0
># | image_create /tmp/ips.test.4335/0/image0
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /tmp/ips.test.4335/0/image0 -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds install incorp at 1.0
># | Startup: Refreshing catalog 'test' ... Done
># | Planning: Solver setup ... Done
># | Planning: Running solver ... Done
># | Planning: Finding local manifests ... Done
># | Planning: Fetching manifests: 0/1 0% complete
># | Planning: Fetching manifests: 1/1 100% complete
># | Planning: Package planning ... Done
># | Planning: Merging actions ... Done
># | Planning: Checking for conflicting actions ... Done
># | Planning: Consolidating action changes ... Done
># | Planning: Evaluating mediators ... Done
># | Planning: Planning completed in 0.02 seconds
># | Packages to install: 1
># | Actions: 1/3 actions (Installing new actions)
># | Actions: Completed 3 actions in 0.00 seconds.
># | Done
># | Done
># | Done
># | Done
># | Done
># | Done
># | Done
># | Traceback (most recent call last):
># | File "./pkg5unittest.py", line 732, in run
># | testMethod()
># | File "./api/../cli/t_pkg_install.py", line 2861, in test_upgrade1
># | self.file_exists(".SELF-ASSEMBLY-REQUIRED")
># | File "./pkg5unittest.py", line 3351, in file_exists
># | self.assert_(False, "File {0} does not exist".format(path))
># | AssertionError: File .SELF-ASSEMBLY-REQUIRED does not exist
># `-----------------------------------------------------
>
>
>5) cli.t_pkgrecv.py TestPkgrecvMulti.test_2_recv_compare
>MISMATCH FAIL (expected: pass)#
># .---Failure Information-------------------------------
># |
>__________________________________________________________________________
>_
># | Start: cli.t_pkgrecv.py TestPkgrecvMulti.test_2_recv_compare
># | Verify that a received package is identical to the
># | original source.
># |
>__________________________________________________________________________
>_
># | $ echo '#!/usr/bin/python [+5 lines...]' > \
># | /tmp/ips.test.4335/0/smf_cmds/usr/bin/svcprop
># | image 0 selected: /tmp/ips.test.4335/0/image0
># | setup: cli.t_pkgrecv.TestPkgrecvMulti.test_2_recv_compare
># | creating 4 repo(s)
># | publishers: ['test1', 'test1', 'test2', 'test2']
># | debug_features: []
># | prep_depot: set depot port 12001
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents1
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile1
># | prep_depot: starting depot
># | depot on port 12001 started
># | prep_depot: set depot port 12002
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents2
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile2
># | prep_depot: starting depot
># | depot on port 12002 started
># | prep_depot: set depot port 12003
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents3
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile3
># | prep_depot: starting depot
># | depot on port 12003 started
># | prep_depot: set depot port 12004
># | prep_depot: set depot repository /tmp/ips.test.4335/0/repo_contents4
># | prep_depot: set depot log to /tmp/ips.test.4335/0/depot_logfile4
># | prep_depot: starting depot
># | depot on port 12004 started
># | $ echo 'tmp/bronze1' > /tmp/ips.test.4335/0/tmp/bronze1
># | $ echo 'tmp/bronze2' > /tmp/ips.test.4335/0/tmp/bronze2
># | $ echo 'tmp/bronzeA1' > /tmp/ips.test.4335/0/tmp/bronzeA1
># | $ echo 'tmp/bronzeA2' > /tmp/ips.test.4335/0/tmp/bronzeA2
># | $ echo 'tmp/copyright2' > /tmp/ips.test.4335/0/tmp/copyright2
># | $ echo 'tmp/copyright3' > /tmp/ips.test.4335/0/tmp/copyright3
># | $ echo 'tmp/libc.so.1' > /tmp/ips.test.4335/0/tmp/libc.so.1
># | $ echo 'tmp/sh' > /tmp/ips.test.4335/0/tmp/sh
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpSH4dkX
># | PUBLISHED
># | pkg://test1/amber@1.0,5.11-0:20150604T131647Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpNSJ3WT
># | PUBLISHED
># | pkg://test1/amber@2.0,5.11-0:20150604T131647Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpoxLkgu
># | PUBLISHED
># | pkg://test1/bronze@1.0,5.11-0:20150604T131647Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpLjvFho
># | PUBLISHED
># | pkg://test1/bronze@2.0,5.11-0:20150604T131648Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpfYNt9J
># | PUBLISHED
># | pkg://test1/bronze@2.0,5.11-0:20150604T131649Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpkh01C8
># | PUBLISHED
># | pkg://test1/tree@1.0,5.11-0:20150604T131650Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpO2eaYM
># | PUBLISHED
># | pkg://test1/branch@1.0,5.11-0:20150604T131650Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpg5fpZE
># | PUBLISHED
># | pkg://test1/leaf@1.0,5.11-0:20150604T131651Z
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s http://localhost:12001 publish -d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpfmF8CU
># | PUBLISHED
># | pkg://test1/scheme@1.0,5.11-0:20150604T131651Z
># | $ export PKG_TRANS_ID=
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgrecv
>\
># | -s http://localhost:12001 --raw -k -d
>/tmp/ips.test.4335/0/tmp88RIiE \
># | pkg://test1/bronze@2.0,5.11-0:20150604T131649Z
># | Processing packages for publisher test1 ...
># | Retrieving catalog 'test1' ... Done
># | Retrieving and evaluating 1 package(s)...
># | Fetching manifests: 1/1 100% complete
># | Fetching manifests: 1/1 100% complete
># | Republish: pkg:/bronze at 2.0,5.11-0:20150604T131649Z ... Done
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -s file:///tmp/ips.test.4335/0/tmpGKrIwg create-repository \
># | --set-property publisher.prefix=test1
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgrecv
>\
># | -s http://localhost:12001 -d
>file:///tmp/ips.test.4335/0/tmpGKrIwg \
># | pkg://test1/bronze@2.0,5.11-0:20150604T131649Z
># | Processing packages for publisher test1 ...
># | Retrieving target catalog 'test1' ... Done
># | Retrieving catalog 'test1' ... Done
># | Retrieving and evaluating 1 package(s)...
># | Fetching manifests: 1/1 100% complete
># | Fetching manifests: 1/1 100% complete
># | Republish: pkg:/bronze at 2.0,5.11-0:20150604T131649Z ... Done
># |
>/tmp/ips.test.4335/0/repo_contents1/publisher/test1/pkg/bronze/2.0%2C5.11-
>0%3A20150604T131649Z
># |
>/tmp/ips.test.4335/0/tmpGKrIwg/pkg/bronze/2.0%2C5.11-0%3A20150604T131649Z
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgrecv
>\
># | -s file:///tmp/ips.test.4335/0/tmpGKrIwg -d
>http://localhost:12002 \
># | pkg://test1/bronze@2.0,5.11-0:20150604T131649Z
># | Processing packages for publisher test1 ...
># | Retrieving target catalog 'test1' ... Done
># | Retrieving catalog 'test1' ... Done
># | Retrieving and evaluating 1 package(s)...
># | Fetching manifests: 1/1 100% complete
># | Fetching manifests: 1/1 100% complete
># | Republish: pkg:/bronze at 2.0,5.11-0:20150604T131649Z ... Done
># | image_create /tmp/ips.test.4335/0/image0
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /tmp/ips.test.4335/0/image0 -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds info -r bronze at 2.0
># | pkg: info: no packages matching the following patterns you specified
>were
># | found in the catalog. Try relaxing the patterns, refreshing, and/or
># | examining the catalogs:
># | bronze at 2.0
># | [exited 1, expected 0]
># | Traceback (most recent call last):
># | File "./pkg5unittest.py", line 732, in run
># | testMethod()
># | File "./api/../cli/t_pkgrecv.py", line 383, in test_2_recv_compare
># | self.pkg("info -r bronze at 2.0")
># | File "./pkg5unittest.py", line 2523, in pkg
># | env_arg=env_arg, coverage=coverage, handle=handle)
># | File "./pkg5unittest.py", line 490, in cmdline_run
># | comment)
># | UnexpectedExitCodeException:
># | Invoked: /tmp/ips.test.4335/fakeroot/pkg -R
>/tmp/ips.test.4335/0/image0 -D plandesc_validate=1 -D
>manifest_validate=Always -D smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds
>info -r bronze at 2.0
># | Expected exit status: [0]. Got: 1. Output Follows:
># | ,---------------------------------------------------------------------
># | | $ /tmp/ips.test.4335/fakeroot/pkg -R /tmp/ips.test.4335/0/image0
>-D plandesc_validate=1 -D manifest_validate=Always -D
>smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds info -r bronze at 2.0
># | | pkg: info: no packages matching the following patterns you
>specified were
># | | found in the catalog. Try relaxing the patterns, refreshing, and/or
># | | examining the catalogs:
># | |
># | | bronze at 2.0
># | |
># | `---------------------------------------------------------------------
># `-----------------------------------------------------
>
>6) This one fails it seems because different date output formats
>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.4335/0/test-ranked
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/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.4335/0/test-ranked test
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s /tmp/ips.test.4335/0/test-ranked publish
>-d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpd4xdtj
># | pkg://test/bronze@1.0,5.11-0:20110908T004546Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s /tmp/ips.test.4335/0/test-ranked publish
>-d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpBCOEpS
># | 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_i3
>86/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.4335/0/test-ranked test2
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/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.4335/0/test-ranked publisher/prefix=test2
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s /tmp/ips.test.4335/0/test-ranked publish
>-d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmp9xmk1m
># | 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_i3
>86/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.4335/0/test-ranked test3
># | $
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/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.4335/0/test-ranked publisher/prefix=test3
># | $ cd /tmp/ips.test.4335/0; \
># |
>/export/home/alp/srcs/oi-userland/components/illumos/pkg/pkg/proto/root_i3
>86/usr/bin/pkgsend
>\
># | -D allow-timestamp -s /tmp/ips.test.4335/0/test-ranked publish
>-d \
># | /tmp/ips.test.4335/0 /tmp/ips.test.4335/0/tmpwW2mwz
># | pkg://test3/bronze@1.0,5.11-0:20110908T004546Z
># | PUBLISHED
># | $ export PKG_TRANS_ID=
># | image_destroy /tmp/ips.test.4335/0/image0
># | image_create /tmp/ips.test.4335/0/image0
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /tmp/ips.test.4335/0/image0 -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds set-publisher -p \
># | /tmp/ips.test.4335/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.4335/fakeroot/pkg -R /tmp/ips.test.4335/0/image0 -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/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
># `-----------------------------------------------------
>
>7) cli.t_fix.py TestFix.test_06_download
>MISMATCH FAIL (expected: pass)#
># .---Failure Information-------------------------------
># |
>__________________________________________________________________________
>_
># | Start: cli.t_fix.py TestFix.test_06_download
># | Test that pkg fix won't try to download all data for
># | files that fail verification when the data is not going
># | to be used.
># |
>__________________________________________________________________________
>_
># | image_destroy /var/tmp/test-suiteyBYqwn
># | image_create /var/tmp/test-suiteyBYqwn
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /var/tmp/test-suiteyBYqwn -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds install sysattr
># | Startup: Refreshing catalog 'test' ... Done
># | Planning: Solver setup ... Done
># | Planning: Running solver ... Done
># | Planning: Finding local manifests ... Done
># | Planning: Fetching manifests: 0/1 0% complete
># | Planning: Fetching manifests: 1/1 100% complete
># | Planning: Package planning ... Done
># | Planning: Merging actions ... Done
># | Planning: Checking for conflicting actions ... Done
># | Planning: Consolidating action changes ... Done
># | Planning: Evaluating mediators ... Done
># | Planning: Planning completed in 0.03 seconds
># | Packages to install: 1
># | Download: 0/2 items 0.0/0.0MB 0% complete
># | Download: Completed 52.00 B in 0.01 seconds (6.8k/s)
># | Actions: 1/3 actions (Installing new actions)
># | Actions: Completed 3 actions in 0.00 seconds.
># | Done
># | Done
># | Done
># | Done
># | Done
># | Done
># | Done
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /var/tmp/test-suiteyBYqwn -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds verify
># | Planning: Verifying Packages ... Done
># | Planning: Consolidating action changes ... Done
># | Planning: Evaluating mediators ... Done
># | Planning: Planning completed in 0.01 seconds
># | $ /tmp/ips.test.4335/fakeroot/pkg -R /var/tmp/test-suiteyBYqwn -D \
># | plandesc_validate=1 -D manifest_validate=Always -D \
># | smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds verify
># | Planning: Verifying Packages ... Done
># | Planning: Consolidating action changes ... Done
># | Planning: Evaluating mediators ... Done
># | Planning: Planning completed in 0.01 seconds
># | [exited 0, expected 1]
># | Traceback (most recent call last):
># | File "./pkg5unittest.py", line 732, in run
># | testMethod()
># | File "./api/../cli/t_fix.py", line 399, in test_06_download
># | self.pkg("verify", exit=1)
># | File "./pkg5unittest.py", line 2523, in pkg
># | env_arg=env_arg, coverage=coverage, handle=handle)
># | File "./pkg5unittest.py", line 490, in cmdline_run
># | comment)
># | UnexpectedExitCodeException:
># | Invoked: /tmp/ips.test.4335/fakeroot/pkg -R
>/var/tmp/test-suiteyBYqwn -D plandesc_validate=1 -D
>manifest_validate=Always -D smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds
>verify
># | Expected exit status: [1]. Got: 0. Output Follows:
># | ,---------------------------------------------------------------------
># | | $ /tmp/ips.test.4335/fakeroot/pkg -R /var/tmp/test-suiteyBYqwn
>-D plandesc_validate=1 -D manifest_validate=Always -D
>smf_cmds_dir=/tmp/ips.test.4335/0/smf_cmds verify
># | | Planning: Verifying Packages ... Done
># | | Planning: Consolidating action changes ... Done
># | | Planning: Evaluating mediators ... Done
># | | Planning: Planning completed in 0.01 seconds
># | |
># | `---------------------------------------------------------------------
># `-----------------------------------------------------
>
>8) cli.t_pkg_linked.py TestPkgLinkedScale.test_li_scale
>fails with
>Failed 'metadata update' for child image (system:img248) at path:
>/tmp/ips.test.4335/0/image248/: [Errno 24] Too many open files
>
>
>
>
>--
>Best regards,
>Alexander Pyhalov,
>system administrator of Southern Federal University IT department
>
>_______________________________________________
>oi-dev mailing list
>oi-dev at openindiana.org
>http://openindiana.org/mailman/listinfo/oi-dev
More information about the oi-dev
mailing list