Skip to content

nmpfilter: log file #103

Closed
Closed

Description

@yakra

Create a log file, listing:

  • time & date nmpfilter was executed
  • time & date tm-master.nmp was modified
  • contents of hwy_data/../.git/refs/heads/master if available
    • time/date of .git/refs/heads/master?
    • if unavailable, maybe date/time of most recent change to hwy_data?

Activity

  1. self-assigned this
    on Sep 8, 2018
  2. jteresco commented on Sep 9, 2018

    @jteresco
    Contributor

    Is this all needed if nmpfilter will be run on every site update (as it will be from here on)?

  3. yakra commented on Sep 9, 2018

    @yakra
    ContributorAuthor

    This is not necessary. Just something I think might be nice to have.

  4. michihdeu commented on Sep 9, 2018

    @michihdeu
    Contributor

    Since you sometimes skip graph generation - which would include nmpfilter now -, it would be really helpful to see the date when the nmp file(s) were generated. However, I'd prefer that you run it always (some "normal" data checks are also not checked).

  5. jteresco commented on Sep 9, 2018

    @jteresco
    Contributor

    tm-master.nmp has been generated on every site update for a while now, even when graph generation is skipped, and will continue to be (it's a fast process), so nmpfilter is also run on every site update.

  6. yakra commented on Sep 11, 2018

    @yakra
    ContributorAuthor
    • contents of hwy_data/../.git/refs/heads/master if available

    This file lists the most recent commit to the HighwayData repo.
    Useful for checking NMP info against the state of HighwayData when the site update was run, or for downloading a clone of the repo at that specific point in time and attempting to recreate things, etc.

  7. yakra commented on Nov 6, 2018

    @yakra
    ContributorAuthor

    time & date nmpfilter was executed
    contents of hwy_data/../.git/refs/heads/master if available

    Done.

    time & date tm-master.nmp was modified

    Info on how to do this isn't right at my fingertips. (statbuf?)
    In practice, when running nmpbyregion as part of the site update, tm-master.nmp will have been created a matter of minutes beforehand, so this doesn't matter much.

    time/date of .git/refs/heads/master?

    Nope. If the file is there, its contents are all the info we really need; we're able to narrow the state of the repo down to a specific commit, which is precise enough.

    if unavailable, maybe date/time of most recent change to hwy_data?

    Info on how to do this isn't right at my fingertips.
    This would only come into play on someone's local machine where the data isn't an actual git clone, in which there's no guarantee of being able to replicate conditions by looking thru the repository history.
    (Conversely, even if it's a git clone & we have a commit number, the data could have been changed more recently. In which case...)
    Not worth the bother.

    This should be automatically closed when #123 is merged.

  8. yakra commented on Nov 15, 2018

    @yakra
    ContributorAuthor

    Something didn't work:
    http://travelmapping.net/logs/nmpbyregion/nmpbyregion.log

    nmpbyregion executed Wed Nov 14 21:44:51 2018
    Most recent commit is unknown.

    The commit number should be displayed. Need to look into this.

  9. reopened this on Nov 15, 2018
  10. yakra commented on Dec 21, 2018

    @yakra
    ContributorAuthor

    nmpbyregion executed Thu Dec 20 22:28:19 2018
    Most recent commit is 834f677bf58c8fa36bba3e1b0b38e16f4283f916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions