Page MenuHomeFreeBSD

jlduran (Jose Luis Duran)
User

Projects

User Details

User Since
May 30 2017, 11:42 AM (388 w, 3 d)

Recent Activity

Today

jlduran updated the diff for D47476: nanobsd: Fix parallel make.
  • Move the check for -DNO_CLEAN (-n), so this value is reflected when exporting the variable
Fri, Nov 8, 4:05 PM
jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.
  • Add missing local variable declaration
Fri, Nov 8, 3:48 AM

Yesterday

jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.
  • Use a compact switch statement
Thu, Nov 7, 11:37 PM
jlduran added a comment to D47476: nanobsd: Fix parallel make.

I'd be tempted to remove NANO_PMAKE from embedded/common, rescue/common, and dhcpd/common.

Thu, Nov 7, 6:24 PM
jlduran requested review of D47476: nanobsd: Fix parallel make.
Thu, Nov 7, 6:04 PM
jlduran requested review of D47475: nanobsd: Add missing options to usage().
Thu, Nov 7, 6:04 PM
jlduran added inline comments to D46759: release: add optional OCI images.
Thu, Nov 7, 3:50 PM

Wed, Nov 6

jlduran added a comment to D47399: sound: Include snd_cmi only for i386 and amd64.

LGTM, feel free to propose the patch for ai2s and davbus. :)

Wed, Nov 6, 3:08 PM
jlduran requested review of D47467: sound: Include ai2s and davbus for PowerPC.
Wed, Nov 6, 3:05 PM

Tue, Nov 5

jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.
  • Update with suggestions
Tue, Nov 5, 11:41 PM
jlduran committed rG5797a03fe8a7: ping tests: Run tests unprivileged inside a vnet (authored by jlduran).
ping tests: Run tests unprivileged inside a vnet
Tue, Nov 5, 3:21 AM
jlduran closed D42174: ping tests: Silence deprecation warnings.
Tue, Nov 5, 3:21 AM
jlduran committed rG8b13cb9d654c: ping tests: Silence deprecation warnings (authored by jlduran).
ping tests: Silence deprecation warnings
Tue, Nov 5, 3:21 AM
jlduran closed D42175: ping tests: Run tests unprivileged inside a vnet.
Tue, Nov 5, 3:21 AM
jlduran committed rG4859030ef193: ping: tests: Align with Scapy defaults (authored by jlduran).
ping: tests: Align with Scapy defaults
Tue, Nov 5, 2:51 AM
jlduran committed rG2e29bf7a2ae6: ping: tests: Cleanup IPOption()s (authored by jlduran).
ping: tests: Cleanup IPOption()s
Tue, Nov 5, 2:51 AM
jlduran closed D47160: ping: tests: Cleanup IPOption()s.
Tue, Nov 5, 2:51 AM
jlduran closed D47159: ping: tests: Align with Scapy defaults.
Tue, Nov 5, 2:51 AM
jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.

Rebase.

Tue, Nov 5, 2:25 AM
jlduran committed rG9e84289f2c7e: git-arc: Prefer echo over printf (authored by jlduran).
git-arc: Prefer echo over printf
Tue, Nov 5, 2:12 AM
jlduran committed rG2377c19a8c37: git-arc: Trap on every mktemp (authored by jlduran).
git-arc: Trap on every mktemp
Tue, Nov 5, 2:12 AM
jlduran committed rG019981e00f23: git-arc: Fix typo s/Truning/Turning/ (authored by jlduran).
git-arc: Fix typo s/Truning/Turning/
Tue, Nov 5, 2:12 AM
jlduran committed rGaa90b92ac289: git-arc: Fix find_author() for external users (authored by jlduran).
git-arc: Fix find_author() for external users
Tue, Nov 5, 2:12 AM
jlduran closed D46789: git-arc: Fix find_author() for external users.
Tue, Nov 5, 2:12 AM
jlduran closed D47289: git-arc: Trap on every mktemp.
Tue, Nov 5, 2:12 AM

Mon, Nov 4

jlduran added inline comments to D47289: git-arc: Trap on every mktemp.
Mon, Nov 4, 8:30 PM
jlduran closed D47392: rc: Update ipfilter example rules location.
Mon, Nov 4, 8:05 PM
jlduran committed rG8934526be184: rc: Update ipfilter example rules location (authored by jlduran).
rc: Update ipfilter example rules location
Mon, Nov 4, 8:05 PM
jlduran committed rG0187bc8a472e: sound: Include snd_cmi only for i386 and amd64 (authored by jlduran).
sound: Include snd_cmi only for i386 and amd64
Mon, Nov 4, 7:59 PM
jlduran closed D47399: sound: Include snd_cmi only for i386 and amd64.
Mon, Nov 4, 7:59 PM

Sun, Nov 3

jlduran added a comment to D47399: sound: Include snd_cmi only for i386 and amd64.

LGTM, feel free to propose the patch for ai2s and davbus. :)

Sun, Nov 3, 5:31 PM

Sat, Nov 2

jlduran closed D47397: committers-guide: Improve "Fixes:" metadata.
Sat, Nov 2, 3:55 PM
jlduran committed R9:eddfe9b41481: committers-guide: Improve "Fixes:" metadata (authored by jlduran).
committers-guide: Improve "Fixes:" metadata
Sat, Nov 2, 3:55 PM
jlduran added a comment to D47399: sound: Include snd_cmi only for i386 and amd64.

The metadriver is also missing snd_emu10k1.
PowerPC has ai2s and davbus which can also be included in the snd_driver metadriver with similar guards, effectively replicating sys/modules/sound/driver/Makefile.

Sat, Nov 2, 2:34 AM
jlduran requested review of D47399: sound: Include snd_cmi only for i386 and amd64.
Sat, Nov 2, 2:14 AM

Fri, Nov 1

jlduran updated the summary of D47397: committers-guide: Improve "Fixes:" metadata.
Fri, Nov 1, 8:16 PM
jlduran added a comment to D47397: committers-guide: Improve "Fixes:" metadata.

Thank you for the detailed explanation.
I'll wait for the MoM.
By the way, I have updated my local prepare-commit-msg hook, but maybe it would be useful to update tools/tools/git/hooks/prepare-commit-message as well?

Fri, Nov 1, 8:06 PM
jlduran added a comment to D47397: committers-guide: Improve "Fixes:" metadata.

FreeBSD-telepathy?
I just committed a fix and then realized the preferred style is the one described here (glancing over the commit history and the preferred style of my mentor).
Should I just remove the word "canonical" and use "preferred", or wait until the srcmgr call minutes are published?

Fri, Nov 1, 6:43 PM
jlduran added reviewers for D47397: committers-guide: Improve "Fixes:" metadata: emaste, doceng.
Fri, Nov 1, 6:08 PM
jlduran requested review of D47397: committers-guide: Improve "Fixes:" metadata.
Fri, Nov 1, 5:56 PM
jlduran committed rG6baae68d7f31: release: Remove binutils (authored by jlduran).
release: Remove binutils
Fri, Nov 1, 4:53 PM
jlduran requested review of D47392: rc: Update ipfilter example rules location.
Fri, Nov 1, 3:20 PM

Thu, Oct 31

jlduran added a comment to D47346: ipfilter: Set ipf -T optionlist at boot.

Sorry, thinking more about it, this is essentially an rc patch.
The start action will always restart if there is an ipfilter_optionlist defined. Two questions:

  1. Can ipfilter rely more on rc.subr?
  2. If i understand name wouldn't this want an extra action?
Thu, Oct 31, 9:04 PM
jlduran accepted D47346: ipfilter: Set ipf -T optionlist at boot.

I would have just added:

if [ -n "${ifilter_optionlist}" ]; then
	if ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes'; then
		${ipfilter_program:-/sbin/ipf} -D
	fi
	${ipfilter_program:-/sbin/ipf} -T "${ipfilter_optionlist}"
fi

But the current code does the job well and it's arguably more explicit.

Thu, Oct 31, 8:35 PM
jlduran added inline comments to D47289: git-arc: Trap on every mktemp.
Thu, Oct 31, 7:37 PM
jlduran updated the diff for D47289: git-arc: Trap on every mktemp.

If I understood both suggestions correctly, the issue is that tmp is used in gitarc__{list,patch,stage}, and shadowing of the variable (tmp is a local variable)/overwriting of the file contents could accidentally occur in a future refactor of this script.
Suggestions:

  1. One suggestions is to randomize the temporary file every time with the use of a subroutine xmktemp which nests the random file name under an already randomized GITARC_TMPDIR.
  2. A consistent file naming scheme is desired, so each tmp file name would have to be changed to GITARC_TMPDIR/tmp_{list,patch,stage}, for example.

Both are valid, IMO I would also prefer option 2.
However, it is possible that in the future, someone™ extends this script, and by the virtues of copy/pasting, this nomenclature is lost or not easily followed. Given that this someone could very well be me, let's avoid a possible foot-shooting and implement 1[^1].

Thu, Oct 31, 7:36 PM
jlduran added inline comments to D47346: ipfilter: Set ipf -T optionlist at boot.
Thu, Oct 31, 4:29 PM
jlduran added a comment to D47341: freebsd-update: refuse to operate on a pkgbase system.

Just a minor observation.

Thu, Oct 31, 3:59 PM

Wed, Oct 30

jlduran updated the diff for D47289: git-arc: Trap on every mktemp.

This iteration attempts to reach a middle ground between all valid suggestions.

Wed, Oct 30, 4:30 PM
jlduran committed rG22429a464a5f: committers-src: Add jlduran with emaste as mentor (authored by jlduran).
committers-src: Add jlduran with emaste as mentor
Wed, Oct 30, 4:45 AM
jlduran closed D47302: committers-src: Add jlduran with emaste as mentor.
Wed, Oct 30, 4:44 AM

Tue, Oct 29

jlduran added a comment to D47289: git-arc: Trap on every mktemp.
In D47289#1079383, @des wrote:

lgtm but I would suggest waiting for @markj to approve as well

Tue, Oct 29, 6:04 PM
jlduran closed D47299: New committer (src): Jose Luis Duran (jlduran).
Tue, Oct 29, 1:27 AM
jlduran committed R9:932851806f32: New committer (src): Jose Luis Duran (jlduran) (authored by jlduran).
New committer (src): Jose Luis Duran (jlduran)
Tue, Oct 29, 1:27 AM
jlduran added a comment to D46781: git-arc: Make patch with reviewers more portable.

I do not yet have the appropriate permissions to do it.

I believe everything should be set now.

Tue, Oct 29, 12:43 AM

Mon, Oct 28

jlduran added a comment to D46781: git-arc: Make patch with reviewers more portable.

Please, feel free to commit the changes from that branch if you should consider so:
https://github.com/jlduran/freebsd-src/tree/fix-git-arc-consolidated

Mon, Oct 28, 6:29 PM
jlduran updated the diff for D47289: git-arc: Trap on every mktemp.
  • Use only $tmp
Mon, Oct 28, 6:13 PM
jlduran added a comment to D47302: committers-src: Add jlduran with emaste as mentor.
In D47302#1078661, @imp wrote:

Woot

Mon, Oct 28, 4:00 AM
jlduran requested review of D47302: committers-src: Add jlduran with emaste as mentor.
Mon, Oct 28, 3:52 AM
lwhsu renamed jlduran from jlduran_gmail.com to jlduran.
Mon, Oct 28, 3:48 AM

Sun, Oct 27

jlduran requested review of D47300: events: Fix FOSDEM entry.
Sun, Oct 27, 10:18 PM
jlduran requested review of D47299: New committer (src): Jose Luis Duran (jlduran).
Sun, Oct 27, 9:37 PM
jlduran updated the diff for D47289: git-arc: Trap on every mktemp.
  • Minor iteration

And a more detailed explanation (I hope):
It was suggested in D46767 to use a trap to remove the temporary files created with mktemp. This is almost always considered a good practice, as it reduces the chances of leaving stray files, which may contain sensitive information.
The suggested line was:

trap 'rc=$?; rm -f "$review_data" "$user_data" "$diff_data" "$tmp"; trap - 0; exit $rc' 0 1 2 3 5 10 15

Meaning that whenever a signal of EXIT HUP INT QUIT TRAP USR1 TERM (0 1 2 3 5 10 15), without the SIG prefix is triggered, the temporary file is removed. The value of $? after the trap action completes shall be the value it had before the trap action was executed. Finally, if the action is -, the shell shall reset each condition to the default value.
It was also suggested to store {review,user,dif,tmp}_data under a directory, in order to just:

trap 'rc=$?; rm -fr "$tmp_data_dir"; trap - 0; exit $rc' 0 1 2 3 5 10 15

The code was changed to use a directory.
There are also other places in this file where mktemp is used—there's even one function where the temporary file is not being removed ($tmp under gitarc__stage())—so a global cleanup() makes sense. However, depending on where the trap is triggered, the local variable containing the temporary file or directory may not exist (i.e., outside the function). It is for this reason that these temporary variables must not be local variables, that is why I removed them from their respective local declarations.

Sun, Oct 27, 7:28 AM

Sat, Oct 26

jlduran updated the diff for D47289: git-arc: Trap on every mktemp.

Sorry, I originally had one revision where the temp file/directory was passed to the cleanup() function. The previously submitted one was a non-working hybrid.

Sat, Oct 26, 12:26 AM
jlduran planned changes to D47289: git-arc: Trap on every mktemp.

Note to self: (Feature requeAdd a -T option to pass a test plan, similar to arcgit's.

Sat, Oct 26, 12:14 AM

Fri, Oct 25

jlduran added inline comments to D46767: git-arc: Do not echo unescaped literals to jq.
Fri, Oct 25, 11:42 PM
jlduran updated the summary of D47289: git-arc: Trap on every mktemp.
Fri, Oct 25, 11:26 PM
jlduran requested review of D47289: git-arc: Trap on every mktemp.
Fri, Oct 25, 11:21 PM
jlduran added inline comments to D46781: git-arc: Make patch with reviewers more portable.
Fri, Oct 25, 3:47 PM
jlduran added a reviewer for D46804: git-arc: Improve 'list' when a review exists: des.
Fri, Oct 25, 3:41 PM
jlduran added inline comments to D46804: git-arc: Improve 'list' when a review exists.
Fri, Oct 25, 3:40 PM
jlduran added inline comments to D46767: git-arc: Do not echo unescaped literals to jq.
Fri, Oct 25, 2:36 PM
jlduran added a reviewer for D46804: git-arc: Improve 'list' when a review exists: 0mp.
Fri, Oct 25, 1:30 PM

Thu, Oct 24

jlduran added a comment to D47274: git-arc: Use printf instead of echo.

Thank you for making this tool more portable. This is a cousin commit of D46781 and D46767. I agree, echo (without -n is portable) and IMO, more readable than printf, because there is no need to add a new line at the end. The issue is only with echo -n.

Thu, Oct 24, 3:33 PM

Wed, Oct 23

jlduran added inline comments to D46759: release: add optional OCI images.
Wed, Oct 23, 6:17 PM

Fri, Oct 18

jlduran added a comment to D46759: release: add optional OCI images.

A few (almost) irrelevant suggestions.
I have tested a bit more with the minimal image. For the use case described here, it works quite well. However, when compiling something from source, I ran into a few issues:

  1. Missing /usr/lib/libprocstat.so.1 from FreeBSD-utilities (this package pulls in a few dependencies).
  2. Missing /usr/lib/crt1.o from FreeBSD-clibs-dev (this package is in the top 20 sorted by size).
  3. Missing /sys symbolic link from pkgbase (irrelevant for this revision).

Overall, the minimal image is good and a welcomed addition towards delivering jails containers straight from the FreeBSD project (hopefully from a fully-owned registry as well as containerized ports packages).
Thanks again!

Fri, Oct 18, 11:51 PM

Wed, Oct 16

jlduran added a reviewer for D47159: ping: tests: Align with Scapy defaults: network.
Wed, Oct 16, 5:30 PM
jlduran added a reviewer for D47160: ping: tests: Cleanup IPOption()s: network.
Wed, Oct 16, 5:29 PM
jlduran requested review of D47160: ping: tests: Cleanup IPOption()s.
Wed, Oct 16, 5:16 PM
jlduran requested review of D47159: ping: tests: Align with Scapy defaults.
Wed, Oct 16, 5:15 PM
jlduran updated subscribers of D45774: sbin/ping: allow normal users to specify larger packets.

@kp has fixed the ping test in 2926c2594249f64fecbbdcb0b0b9a3591931ab04. It was not related to this commit.

Wed, Oct 16, 3:52 PM
jlduran added a comment to D47151: ping tests: fix for scapy-2.6.0.

The unk-40 below also has an unknown option, but is not tested in this file (tested on the atf-sh based test).
There are a couple other minor fixes I would like to add to this file, but this is just about making the tests pass.
Thanks for the heads up!

Wed, Oct 16, 3:09 PM
jlduran accepted D47151: ping tests: fix for scapy-2.6.0.

Thank you!

Wed, Oct 16, 1:11 PM

Mon, Oct 14

jlduran added inline comments to D47107: sysctl: Add flags to filter jail prison and vnet variables.
Mon, Oct 14, 4:21 PM

Fri, Oct 11

jlduran added a comment to D46759: release: add optional OCI images.

Sorry, forgot to actually include my doubts in the discussion.

Fri, Oct 11, 5:45 PM

Thu, Oct 10

jlduran added a comment to D46759: release: add optional OCI images.

Thank you, this looks good.

Thu, Oct 10, 11:31 PM

Sep 27 2024

jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.
  1. Build a list of commit ids (reversed).
  2. Get a list of open revisions with colors (arc list --ansi).
  3. For each commit:
    1. Print the commit short hash.
    2. Look for "Differential Revision:" in the commit body (log2diff).
    3. If there is only one result, print the Differential ID, if any ( diff2status). This may happen when a reviewer uses git arc patch -c to download the review and commit locally, as this text is added automatically by git-arc:
      1. Sanity check for the Differential Revision ID.
      2. Capture the output of echo '{"names":["D12345"]}' | arc call-conduit -- phid.lookup. To check online, visit https://reviews.freebsd.org/conduit/method/phid.lookup/ and type an array of the Differential Review IDs ["D12345"] [^1].
      3. Grab the Phabricator ID. This string must exist, but check just in case.
      4. Grab the "detailed status" (printf "%s" '{"constraints": {"phids": ["PHID-DREV-bxzw4f4pkmzlyha4gosr"]}}' | arc call-conduit -- differential.revision.search | jq -r '.response.data[0].fields.status').
      5. Pretty-print the "detailed status" and the title.
      6. Stop.
    4. Check if the title of the commit matches one from the list obtained in step 2. This can yield one of three outcomes:
      1. No Review : <title>.
      2. Ambiguous Reviews: D12345, D54321. I wonder if it should also print the title
      3. The output of the line matched in step 2, without the initial * (note that in my terminal, this also removes the bold font and coloring of the Differential Revision ID).
      4. Stop.
Sep 27 2024, 5:26 PM
jlduran planned changes to D46804: git-arc: Improve 'list' when a review exists.

If I understand correctly, "when a review exists" means that the commit log already has a "Differential Revision" tag?

Sep 27 2024, 3:16 PM
jlduran updated the diff for D46804: git-arc: Improve 'list' when a review exists.

Minor fixes

Sep 27 2024, 5:43 AM
jlduran updated the summary of D46804: git-arc: Improve 'list' when a review exists.
Sep 27 2024, 2:24 AM
jlduran added a comment to D46804: git-arc: Improve 'list' when a review exists.

Final patch in the series.

% git arc list main..fix-git-arc-consolidated
33118f4d8db4 No Review             : git-arc.sh: Fix typo s/Truning/Turning/
775a91cc76f6 Accepted        D46767: git-arc: Do not echo unescaped literals to jq
c305f7eb5215 Accepted        D46781: git-arc: Make patch with reviewers more portable
a75479fe401f Accepted        D46789: git-arc: Fix find_author() for external users
23587ac312ed Needs Review    D46804: git-arc: Improve 'list' when a review exists

I'm not really good at painting in the terminal. I hope there is a shorter way to achieve the same result.

Sep 27 2024, 2:12 AM
jlduran requested review of D46804: git-arc: Improve 'list' when a review exists.
Sep 27 2024, 2:08 AM

Sep 26 2024

jlduran added a comment to D46767: git-arc: Do not echo unescaped literals to jq.

I think I know how to achieve the same result using printf, and escaping literals with %s.
Regardless, I only have one more patch for git-arc (git arc list) that may benefit of review_data being in a file. If it turns out otherwise, I can "revert" to using variables.
I'm done trying out this great article on the topic.
Thank you for the reviews!

Sep 26 2024, 1:06 PM

Sep 25 2024

jlduran requested review of D46789: git-arc: Fix find_author() for external users.
Sep 25 2024, 5:44 PM
jlduran updated the diff for D46781: git-arc: Make patch with reviewers more portable.

Fix other occurrences of "echo -n" while here.

Sep 25 2024, 7:15 AM
jlduran requested review of D46781: git-arc: Make patch with reviewers more portable.
Sep 25 2024, 6:21 AM

Sep 24 2024

jlduran accepted D46760: dhclient: Ignore vendor-identifying DHCP options defined in RFC 3925.

Tested against a Kea server, with a simplified version of the following example:
https://github.com/isc-projects/kea/blob/master/doc/examples/kea4/vivso.json

Sep 24 2024, 12:52 PM
jlduran updated subscribers of D46767: git-arc: Do not echo unescaped literals to jq.

Thank you.. Hmm I am pretty sure I included @emaste in the review. Well, still learning git-arc.

Sep 24 2024, 1:06 AM
jlduran updated the summary of D46767: git-arc: Do not echo unescaped literals to jq.
Sep 24 2024, 12:40 AM
jlduran added a comment to D46767: git-arc: Do not echo unescaped literals to jq.

I'm not a big fan of making temporary files, but I don't know how else to fix it.

Sep 24 2024, 12:39 AM