Created by James Hunt on 2013-05-01 and last modified on 2013-06-05
Get this branch:
bzr branch lp:~jamesodhunt/upstart/serialise-remaining-objects
Only James Hunt can upload to this branch. If you are James Hunt please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

James Hunt

Recent revisions

1489. By James Hunt on 2013-06-05

* Sync with lp:upstart.

1488. By James Hunt on 2013-06-05

* init/state.c: state_from_string(): Check if ConfSources
  exist in the serialisation data to allow distinction between
  ConfSources not present and failing to deserialise them.

1487. By James Hunt on 2013-06-05

* init/tests/data/upstart-1.8+full_serialisation+apparmor.json: New test
  data file.
* init/tests/test_state.c:
  - test_upstart_full_serialise_with_apparmor_upgrade(): New test to ensure
    Upstart can parse the current 1.8 format JSON with the addition of the full
    serialisation data (EventOperator, etc), and the AppArmor serialisation.

1486. By James Hunt on 2013-06-05

* init/tests/data/upstart-1.8+apparmor.json: New test data file.
* init/tests/test_state.c:
  - test_upgrade(): Re-initialise lists and hashes as a convenience to
    the tests.
  - test_upstart_with_apparmor_upgrade(): New test to ensure Upstart can
    parse the current 1.8 format JSON with the addition of the AppArmor
    serialisation (but crucially *without* the full serialisation data
    (EventOperator, etc).
  - test_upstart_full_serialise_without_apparmor_upgrade(): New test to
    ensure Upstart can parse the current 1.8 format JSON with the
    addition of the full serialisation data (EventOperator, etc),
    but _without_ the AppArmor serialisation.

1485. By James Hunt on 2013-06-04

* init/event.c: event_deserialise(): Revert to checking JSON for
  blockers to avoid reliance on JSON serialisation data format version.
* init/event_operator.h: Fix misplacement of NIH_END_EXTERN.
* init/state.c: Remove serialisation version code since the autoconf
  approach of detecting the format of the JSON is safer.
* init/state.h: Remove STATE_VERSION.

1484. By James Hunt on 2013-05-29

* Sync with lp:upstart.
* init/tests/test_state.c: test_upstart_pre_security_upgrade(): Tweaks
  to work with new TestDataFile structure and requirement that no
  conf_sources exist just prior to deserialisation.

1483. By James Hunt on 2013-05-13

* init/state.c: stateful_reexec(): Specify all values for array

1482. By James Hunt on 2013-05-10

Revert to not supporting deserialisation of JobClasses with associated
user/chroot sessions to avoid behavioural change for now.

* init/job_class.c:
  - job_class_deserialise(): Revert to failing if associated session is
  - job_class_deserialise_all(): Revert to ignoring failure to
    deserialise a JobClass iff it has a non-NULL associated session.
* init/state.c:
  - state_to_string(): Provide some diagnostics if serialisation fails.
  - state_from_string(): Provide some diagnostics if deserialisation fails.
  - state_deserialise_resolve_deps(): Ignore failure to lookup JobClass
    iff it has an associated user/chroot session.
  - state_deserialise_blocking(): Revert to ignoring failure to
    deserialise a Blocked object that is associated with a Job whose
    JobClass has a non-NULL session.
* init/tests/test_state.c: test_blocking(): Revert test to assert that
  blocked job with non-NULL session is ignored.

1481. By James Hunt on 2013-05-09

* Merge of lp:upstart.

1480. By James Hunt on 2013-05-09

* init/job.c: job_serialise(): Corrected logic for handling 'stop on'
* init/job_class.c: job_class_deserialise(): Only check type after JSON
  queried (thanks Coverity).

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.