[tor-bugs] #31477 [Core Tor/Tor]: Practracker integration tsts for headers and includes

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 5 21:55:40 UTC 2019


#31477: Practracker integration tsts for headers and includes
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:  nickm
     Type:  defect                               |         Status:
                                                 |  needs_review
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.4.2.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  practracker, tech-debt,              |  Actual Points:
  refactoring, easy, 041-deferred-20190530,      |
  network-team-roadmap-july, dgoulet-merge       |
Parent ID:  #29746                               |         Points:
 Reviewer:  catalyst                             |        Sponsor:
                                                 |  Sponsor31-must
-------------------------------------------------+-------------------------

Comment (by catalyst):

 Replying to [comment:4 nickm]:
 > The bug is this: I thought that saying that DependencyViolation applied
 to `*` would make it apply to all files -- but practracker doesn't support
 that.  I had to say instead that it applies to `*.h` and `*.c`.
 I still didn't understand this description, so I looked into
 `practracker.py` and `problem.py`. I'm guessing that `ProblemFilter` needs
 to have its filename patterns be unambiguously denoting either `.c` or
 `.h` files. It looks like `Item.get_file_type()` determines this based on
 the suffix (`.c` or `.h`) of the file or pattern, defaulting to `*.c`. So
 maybe a pattern of `*` would match `*.c` files but not `*.h` files? Does
 this sound like an accurate description of the bug?

 > I force-pushed a new branch to fix the commit message.  I didn't change
 any code when I did so.
 >
 > >I'm also undecided on whether this needs a changes file. What do you
 think?
 >
 > I'm not sure whether your "this" means this branch, or this bug.  I
 don't think that the bug requires a changes file, since the bug didn't
 exist in 0.4.1.  But I think that this branch needs a changes file, since
 it is a new test that wasn't there before.  Sorry I hadn't added it!  I've
 just put it in the branch.
 Thanks!

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31477#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list