Chapters · Chapter 4 of 7

Keep noise out

Keep high-churn files out so a Capture shows only the configuration you chose.

About 5 minutesTracking from Scratch 1.0.0
Joining here?

Stop Pinman, run this command, then start Pinman again. It rebuilds the sample project up to this point, discarding any work you have already done in it.

pinman tutorial goto noise
View

What to expect#

Matching Rules let Pinman track a changing collection of useful files while leaving logs, caches and other noise out of the schema. In this chapter, you'll track active codec files by name pattern and track the screen recorder folder without its log and cache. Then you'll capture a clean baseline for the changes in the next chapter.

Schema authoring workflow

  1. Choose what mattersfirst tracked file
  2. Describe configurationsettings + labels
  3. Keep noise outMatching Rules
  4. Prove the schemacompare with baseline
  5. Extend beyond filesRegistry + Windows

Steps#

Track a collection with Matching Rules#

The media encoder loads codec files from its codecs folder. Codec files may come and go, so tracking them by rule is more useful than choosing each file by name. The available subfolder contains codecs that are installed but not active, so that folder will stay out.

  1. In Explore, find applications/media-encoder/codecs, scanning media-encoder if needed.
  2. Right-click codecs and select Track item….

For a folder, What to track controls whether Pinman automatically tracks its files and subfolders. Matching Rules then decide which names are included or excluded. An include rule wins over an exclude rule, so you can exclude everything first and then include only *.codec files.

  1. Turn on Also track other files and subfolders automatically.
  2. Under Matching Rules, select the pencil icon, Edit matching rules.
  3. Select Add rule, set Match to All items, and leave Rule as Exclude here.
  4. Select Add rule again, set Rule to Include here, and enter *.codec in Name or pattern.

The descriptions beneath the rules should read:

  • Exclude all items here.
  • Include names ending in “.codec” here, even if excluded.

Matching Rules for active codec files

  1. Select Track.
  2. Select Refresh to apply from the Explore toolbar.
  3. Click to expand the codecs row to see its contents.

web-delivery.codec and legacy-mpeg2.codec now appear as tracked files even though you did not track either file by name. The available folder stays out, along with anything in codecs that does not match *.codec.

Codec files selected by the Matching Rules

Track an application without its noise#

The screen-recorder folder contains recorder.ini, a helper program, a cache and a log. The cache and log change often but do not describe how the recorder is configured. Track the folder automatically, then exclude those two folders.

  1. Right-click screen-recorder and select Edit tracking….

screen-recorder is already part of the schema because it contains the tracked recorder.ini file. Its current Matching Rules contain Exclude all items here, which keeps the folder structural. Replace that rule with exclusions for only logs and cache.

  1. Turn on Also track other files and subfolders automatically.
  2. Select Edit matching rules, then remove the existing All items rule.
  3. Add an Exclude here rule for logs, and another for cache.
  4. Select Save.
  5. Select Refresh to apply from the Explore toolbar.
  6. Under screen-recorder, scan bin to reveal its contents.
  7. Expand bin to see its tracked contents.

Matching Rules that exclude logs and cache

recorder.ini keeps its INI definition and tracked settings because an explicit definition takes precedence over automatic tracking. The helper program, bin/recorder-helper.exe, is now tracked as Whole file. The logs and cache folders stay out.

Capture the useful scope#

The schema now covers the configuration needed for the next exercise. Create a Checkpoint to use as its baseline. Files + settings includes the individual values you selected, while Tracked only keeps the excluded and untracked files out.

  1. On the Explore toolbar, select Checkpoint.
  2. In Title, enter Tracked workstation baseline.
  3. Check that the options are Files + settings, Tracked only and Record only.
  4. Select Create Checkpoint and wait for it to complete.

The completed tracked workstation baseline

The Checkpoint contains encoder-core.dll, the two active codec files, the recorder helper program and the eight required application settings. If you completed the optional INI practice, those settings are included too. The log, cache and available HDR codec are absent.

What we did#

You used Matching Rules to track two changing folders without selecting every file. The codec folder includes *.codec files, while the screen recorder folder excludes its log and cache. Tracked workstation baseline now captures the useful configuration without the noise.

Next, you'll change the fictional workstation and see whether the schema explains what happened.