Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1755

Classes set by common *not* listed the bundlesequence are not defined early enough for classifying inputs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.6.2, 3.7.0, 3.9.1, 3.7.8
    • Fix Version/s: 3.10.0
    • Component/s: None
    • Labels:
      None
    • Platform:
      Any
    • Steps to reproduce:
      Acceptance/unit test attached

      Description

      Please see the attached tests.

      ```
      3.5.3
      time ./run_test
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation1 3.5.3
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation2 3.5.3
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation3 3.5.3
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation4 3.5.3
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation5 3.5.3
      2014-11-06T23:08:56-0500 notice: R: PASS evaluation6 3.5.3

      real 0m0.132s
      user 0m0.028s
      sys 0m0.036s

      3.6.2
      time ./run_test
      R: FAIL evaluation1 3.6.2 test_bundle_enabled_class NOT defined
      R: PASS evaluation2 3.6.2
      R: FAIL evaluation3 3.6.2 test_bundle_enabled_class NOT defined
      R: PASS evaluation4 3.6.2
      R: PASS evaluation5 3.6.2
      R: PASS evaluation6 3.6.2

      real 0m0.325s
      user 0m0.196s
      sys 0m0.028s
      ```

      evaluation1 and 3 can be fixed by simply adding @read_classes@ and @test_bundle_common@ to the bundlesequence.
      The evaluation is quite foggy to me. I need some assistance understanding the order in which things are evaluated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day
                    1d
                    Remaining:
                    Not Specified
                    Logged:
                    Time Not Required
                    Not Specified