zonemaster-engine icon indicating copy to clipboard operation
zonemaster-engine copied to clipboard

Coherent naming of args in the log

Open pawal opened this issue 9 years ago • 20 comments

Sometimes nsset is called ns. Sometimes ns is called name. Sometimes an "ns" is only a name of a name server, and sometimes it is attached to an IP-adress. Sometimes it is split into an "ns" and an "address".

Sometimes the args is also empty, when there there is likely to actually contain data.

We really need to have coherent naming of the args in the log, with specific types attached to the name.

This is assigned to the whole team, and should be a team effort. This should also be documented.

pawal avatar Mar 31 '15 08:03 pawal

I have prepared this document as a starting point: https://github.com/dotse/zonemaster/blob/master/docs/benchmark/logconsistency.md

pawal avatar Apr 21 '15 13:04 pawal

@vlevigneron Is this something you can spend some time on?

pawal avatar Apr 27 '15 09:04 pawal

I'm currently going through the code and writing a list of all the types of information logged, so we can start with making a list of names for all the different kinds. When we have that, we can start changing the code to use them.

cdybedahl avatar Apr 27 '15 09:04 cdybedahl

Yes of course, once I'll be back from vacation.

2015-04-27 11:18 GMT+02:00 Patrik Wallström [email protected]:

@vlevigneron https://github.com/vlevigneron Is this something you can spend some time on?

— Reply to this email directly or view it on GitHub https://github.com/dotse/zonemaster-engine/issues/60#issuecomment-96580399 .

vlevigneron avatar Apr 27 '15 13:04 vlevigneron

https://github.com/dotse/zonemaster-engine/blob/master/doc/logentry_args.md has a table where we can fill in the names to be used for the various kinds of data used. There are 71 different kinds, and that does not include any SYSTEM messages. Do we need to cover those as well?

cdybedahl avatar Apr 27 '15 14:04 cdybedahl

I don't think there is a need to look at the SYSTEM messages at this moment. At least I have never used them for anything useful - yet.

pawal avatar Apr 27 '15 15:04 pawal

@pawal - can we move this to 2015.4?

sandoche2k avatar May 17 '15 14:05 sandoche2k

I strongly think that we should have a higher priority on this than that...

pawal avatar May 17 '15 16:05 pawal

Ok. I think we will discuss with Vincent to decide on the release timings.

On 17 May 2015 at 18:10, Patrik Wallström [email protected] wrote:

I strongly think that we should have a higher priority on this than that...

— Reply to this email directly or view it on GitHub https://github.com/dotse/zonemaster-engine/issues/60#issuecomment-102819285 .

sandoche2k avatar May 17 '15 19:05 sandoche2k

If it is ok, I will start fixing a number of those things soon.

I will create a new issue for each "name".

pawal avatar Aug 06 '15 12:08 pawal

Hi Patrik,

In case if you do not need Vincent, i think you can start looking at it.

Sandoche.

On 6 August 2015 at 14:53, Patrik Wallström [email protected] wrote:

If it is ok, I will start fixing a number of those things soon.

I will create a new issue for each "name".

— Reply to this email directly or view it on GitHub https://github.com/dotse/zonemaster-engine/issues/60#issuecomment-128353033 .

sandoche2k avatar Aug 06 '15 14:08 sandoche2k

@pawal move to next release

sandoche2k avatar Sep 22 '15 14:09 sandoche2k

@sandoche2k - Put https://github.com/dotse/zonemaster/blob/master/docs/benchmark/logconsistency.md into ZM/docs @pawal - Keep the issue open

sandoche2k avatar Oct 08 '15 12:10 sandoche2k

@pawal - Can we move it to 2016.1?

sandoche2k avatar Nov 23 '15 07:11 sandoche2k

Ping @sandoche2k - could you put logconsistency.md back somewhere in the docs structure?

pawal avatar Jun 26 '16 08:06 pawal

See #102.

matsduf avatar Jun 26 '16 12:06 matsduf

@sandoche2k move to 2018

sandoche2k avatar Sep 12 '17 13:09 sandoche2k

Partially resolved by #853 and #854. The solutions are not yet complete.

matsduf avatar Feb 08 '21 14:02 matsduf

This is an ongoing work. "Arguments for test case messages" has been updated with more well defined argument names for many arguments (last updated at the time of writing was 2022-05-16). The implementation of the test cases has also been updated to match the well-defined argument names.

matsduf avatar Jul 05 '22 08:07 matsduf

  • Add status column to the test case tracking issue (https://github.com/zonemaster/zonemaster/issues/1051).
    • Most messages on DebugX level are not covered by the test cases.
  • Create a tracking issue for the system message (messages outside the test case code).
    • Extract the argument names used and compare with the defined names.

matsduf avatar Jul 05 '22 09:07 matsduf