user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [SQUASH] manifest update
  @ 2023-09-09 21:14  7%   ` Eric Wong
  0 siblings, 0 replies; 6+ results
From: Eric Wong @ 2023-09-09 21:14 UTC (permalink / raw)
  To: meta

---
 MANIFEST | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MANIFEST b/MANIFEST
index 5964794e..1fe1c7f7 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -113,7 +113,7 @@ certs/.gitignore
 certs/create-certs.perl
 ci/README
 ci/deps.perl
-ci/profiles.sh
+ci/profiles.perl
 ci/run.sh
 contrib/completion/lei-completion.bash
 contrib/css/216dark.css

^ permalink raw reply related	[relevance 7%]

* [PATCH 12/95] manifest: update module blurb + v5.12
  2022-11-28  5:30  5% [PATCH 00/95] clone: multi-inbox/repo support Eric Wong
@ 2022-11-28  5:31  7% ` Eric Wong
  0 siblings, 0 replies; 6+ results
From: Eric Wong @ 2022-11-28  5:31 UTC (permalink / raw)
  To: meta

Helps steer new contributors (or forgetful old ones) in the
right direction.
---
 lib/PublicInbox/ManifestJsGz.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/PublicInbox/ManifestJsGz.pm b/lib/PublicInbox/ManifestJsGz.pm
index d5048a96..1f739baa 100644
--- a/lib/PublicInbox/ManifestJsGz.pm
+++ b/lib/PublicInbox/ManifestJsGz.pm
@@ -1,10 +1,10 @@
-# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
-# generates manifest.js.gz for grokmirror(1)
+# generates manifest.js.gz for grokmirror(1) via PublicInbox::WWW
+# This doesn't parse manifest.js.gz (that happens in LeiMirror)
 package PublicInbox::ManifestJsGz;
-use strict;
-use v5.10.1;
+use v5.12;
 use parent qw(PublicInbox::WwwListing);
 use PublicInbox::Config;
 use IO::Compress::Gzip qw(gzip);

^ permalink raw reply related	[relevance 7%]

* [PATCH 00/95] clone: multi-inbox/repo support...
@ 2022-11-28  5:30  5% Eric Wong
  2022-11-28  5:31  7% ` [PATCH 12/95] manifest: update module blurb + v5.12 Eric Wong
  0 siblings, 1 reply; 6+ results
From: Eric Wong @ 2022-11-28  5:30 UTC (permalink / raw)
  To: meta

A large patchset, and not done, yet :P  It's only tested live,
but it seems to work reasonably well against live hosts...

Behavior changes to public-inbox-clone are NOT final; but
public-inbox-fetch|PublicInbox::Fetch will probably become
thin wrappers around LeiMirror.

--include=/--exclude= support now exists with glob support

--keep-going and --dry-run support added, too, since it's
make(1) influenced (more below)

It supports coderepos, too, using --inbox-config=never (default: always);
--project-list=, --manifest=, --objstore=, and --prune.

key differences from grok-pull (grokmirror) for coderepos:

* uses relative paths on the FS (dumb HTTP untested, but dumb
  HTTP is a goal for memory-constrained hosts).  This means
  I can relocate coderepos freely within my FS or do sneakernet
  transfers across machines without having to `perl -ipe s/x/y/'
  on hundreds of info/alternates and config files.

* CLI-only, no extra config files (may generate a Makefile, like
  individual inbox clones)

* objstore repos fetches from remotes directly
  (does not need, use, nor benefit from hardlinks at all)

* no sleep states

It is not a full replacement for grokmirror

* reliant on default `git gc' behavior for repack. This is OK
  since it's only one-way relationships between objstore and
  non-objstore repos.

* no fsck support (probably will be in generated Makefile)

* doesn't generate forkgroups nor manifest.js.gz
  (I may do this for coderepo Xapian indexing)

It relies on parallel git-fetch for objstores, so `-j $NUM'
calculations may end up being ($NUM * $NUM) in the worst case.
Not sure how to best approach this...
Maybe `-j $M,$N' similar to `lei q -j$M,$N` is a solution...

Design note:

This is an exercise in building make(1)-like parallelism using
->DESTROY callbacks for prerequisites; so it's a newish paradigm
for me.  It forced me to fix a reference cycle, already.

TODO: repo|symlink pruning, --exit-code, retry/refetch, manpage updates

Eric Wong (95):
  clone: support multi-inbox clone
  clone: support --include and --exclude with multi-clone
  clone: parallelize v2 epoch clones
  lei_mirror: async config retrieval for v2 w/ manifest
  lei_mirror: rely on DESTROY to index v2 inbox
  lei_mirror: rely on global process reaper
  clone: support parallel v1 clones
  lei_mirror: default to single job by default
  lei_mirror: move directory creation to v2-only path
  lei_mirror: retrieve description text asynchronously, too
  switch inotify/kevent stuff to v5.12
  manifest: update module blurb + v5.12
  lei_mirror: simplify _get_txt_start callers
  lei_mirror: elide description retrieval for v1|coderepo
  lei_mirror: add a hint for skipped epoch permissions
  lei_mirror: consolidate clone process management
  lei_mirror: load File::Path unconditionally
  lei_mirror: load most modules up-front
  lei_mirror: set gitweb.owner from manifest
  clone: support --dry-run / -n flag
  lei_mirror: initialize placeholders with "head" from manifest
  lei_mirror: support {reference} for v1 manifest clones
  lei_mirror: reduce noise on interrupted clones
  clone: support --inbox-config option
  lei_mirror: retrieve v2 description properly
  lei_mirror: reduce scope of v2 lock
  lei_mirror: allow --epoch on mixed v1/v2 clones
  lei_mirror: fix infinite loop in dependency resolution
  lei_mirror: defend against infinite loops
  lei_mirror: do not fetch descriptions if using manifest
  lei_mirror: require PublicInbox::Lock at use
  lei_mirror: fix glob semantics to match end-of-path
  lei_mirror: differentiate -entv vs -ent
  lei_mirror: support manifest {references} for v2 epochs
  lei_mirror: simplify v2 code paths
  clone: support --inbox-version
  lei_mirror: require Perl v5.12+
  lei_mirror: ensure curl exits 22 on HTTP 404 responses
  lei_mirror: cleanup File::Temp OO usage
  lei_mirror: add `index' target to generated Makefile
  lei_mirror: do not write Makefile for --inbox-config=never
  lei_mirror: hoist out dump_manifest sub
  lei_mirror: avoid convoluted lazy_cb usage
  lei_mirror: simplify clone_v2_prep
  lei_mirror: support --objstore and forkgroups
  lei_mirror: cleanup process reaping logic
  lei_mirror: ensure git <1.8.5 fallback can use torsocks
  clone: flesh out --objstore behavior and document
  lei_mirror: always pack refs for coderepos
  lei_mirror: set description for non-inboxes, too
  lei_mirror: force --no-tags when fetching forkgroups
  lei_mirror: preserve permissions of existing alternates file
  lei_mirror: do not show ref updates w/o --verbose
  lei_mirror: drop git <1.8.5 support
  lei_mirror: make basename more descriptive
  lei_mirror: fix --dry-run for forkgroups
  lei_mirror: forkgroups use `git fetch --multiple'
  clone: move --dry-run handling to lei_mirror
  clone: drop unnecessary requires
  clone: use v5.12
  clone: require `--objstore=' for default location
  lei_mirror: shorten remote names
  fetch: use v5.12
  fetch: eliminate File::Temp->filename var
  lei_mirror: properly pack-refs in non-forkgroup repos
  lei_mirror: show child error error code
  on_destroy: support ->cancel callback
  lei_mirror: support resuming multi-repo clones
  lei_mirror: check fingerprints before fetching
  clone: support loading manifest.js.gz from destination
  lei_mirror: delay configuring forkgroups
  clone: canonicalize destination path from CLI
  clone|fetch: support passing --prune(-tags) to `git fetch'
  lei_mirror: avoid needless FD passing
  clone: support --keep-going/-k like make(1)
  lei_mirror: don't warn on missing manifest on initial clone
  lei_mirror: respect `./' and `../' prefixes for CLI args
  lei_mirror: --manifest= affects destination, too
  lei_mirror: update fingerprints when writing local manifest.js.gz
  lei_mirror: remove janky mirror.done stamp file
  lei_mirror: simplify most process spawning
  lei_mirror: run v1_done earlier on forkgroup done
  lei_mirror: simplify forkgroup-related subs
  lei_mirror: shorten scope mirror objects
  lei_mirror: set {head} from manifest
  lei_mirror: support {symlinks} from manifest
  lei_mirror: eliminate circular references
  lei_mirror: use curl -z/--timecond if manifest exists
  lei_mirror: avoid redundant curl `-f' use
  lei_mirror: omit trailing slash for git remote.*.url
  lei_mirror: set info/web/last-modified from manifest
  lei_mirror: don't clobber inbox.config.example if it exists
  lei_mirror: break out of fgrp fetch iteration early
  clone: support --project-list= for cgit
  lei_mirror: handle forkgroup changes

 Documentation/lei-add-external.pod   |    4 +-
 Documentation/public-inbox-clone.pod |   76 ++
 Documentation/public-inbox-fetch.pod |    6 +
 lib/PublicInbox/DSKQXS.pm            |    5 +-
 lib/PublicInbox/DirIdle.pm           |    4 +-
 lib/PublicInbox/FakeInotify.pm       |   13 +-
 lib/PublicInbox/Fetch.pm             |   50 +-
 lib/PublicInbox/In2Tie.pm            |    4 +-
 lib/PublicInbox/InboxIdle.pm         |    2 +-
 lib/PublicInbox/KQNotify.pm          |   12 +-
 lib/PublicInbox/LEI.pm               |    5 +-
 lib/PublicInbox/LeiMirror.pm         | 1104 +++++++++++++++++++++-----
 lib/PublicInbox/ManifestJsGz.pm      |    8 +-
 lib/PublicInbox/OnDestroy.pm         |    5 +-
 lib/PublicInbox/TestCommon.pm        |    1 +
 script/public-inbox-clone            |   23 +-
 script/public-inbox-fetch            |    4 +-
 t/on_destroy.t                       |    8 +-
 t/www_listing.t                      |   71 +-
 19 files changed, 1148 insertions(+), 257 deletions(-)

^ permalink raw reply	[relevance 5%]

* [PATCH 1/7] MANIFEST: update with recent changes
  2016-06-20  0:57  5% [PATCH 0/7] www: various feed/streaming related cleanups Eric Wong
@ 2016-06-20  0:57  7% ` Eric Wong
  0 siblings, 0 replies; 6+ results
From: Eric Wong @ 2016-06-20  0:57 UTC (permalink / raw)
  To: meta

And add a check-manifest target to the Makefile to
ensure we're up-to-date with git (but do not depend on
git).
---
 .gitignore  | 1 +
 MANIFEST    | 2 ++
 Makefile.PL | 5 ++++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 18d0021..3b333a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 /config.mak
+/MANIFEST.gen
 /Makefile.old
 /pm_to_blib
 /MYMETA.*
diff --git a/MANIFEST b/MANIFEST
index 9c8cc1c..17a2a31 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -76,6 +76,7 @@ lib/PublicInbox/View.pm
 lib/PublicInbox/WWW.pm
 lib/PublicInbox/WatchMaildir.pm
 lib/PublicInbox/WwwAttach.pm
+lib/PublicInbox/WwwStream.pm
 sa_config/Makefile
 sa_config/README
 sa_config/root/etc/spamassassin/public-inbox.pre
@@ -134,3 +135,4 @@ t/search.t
 t/spawn.t
 t/utf8.mbox
 t/view.t
+t/watch_maildir.t
diff --git a/Makefile.PL b/Makefile.PL
index 171712a..4a91103 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -47,7 +47,10 @@ my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS))
 
 syntax:: \$(my_syntax)
 
-check:: pure_all
+check-manifest :: MANIFEST
+	if git ls-files >\$<.gen 2>&1; then diff -u \$< \$<.gen; fi
+
+check:: pure_all check-manifest
 	\$(EATMYDATA) prove -lv -j\$(N)
 
 EOF

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/7] www: various feed/streaming related cleanups
@ 2016-06-20  0:57  5% Eric Wong
  2016-06-20  0:57  7% ` [PATCH 1/7] MANIFEST: update with recent changes Eric Wong
  0 siblings, 1 reply; 6+ results
From: Eric Wong @ 2016-06-20  0:57 UTC (permalink / raw)
  To: meta

Yet more progress towards converting our PSGI streaming
interfaces over to getline/close so it can be pull-based.

Eric Wong (7):
      MANIFEST: update with recent changes
      feed: avoid needless method dispatches on 404
      feed: remove dependence on fh->write for streaming
      mbox: remove feed dependency
      mbox: avoid write dependency for streaming
      feed: various object-orientation cleanups
      inbox: move field population logic to initializer

 .gitignore                    |  1 +
 MANIFEST                      |  2 +
 Makefile.PL                   |  5 ++-
 lib/PublicInbox/Config.pm     |  4 +-
 lib/PublicInbox/Feed.pm       | 99 ++++++++++++++++++-------------------------
 lib/PublicInbox/Inbox.pm      | 15 +++++++
 lib/PublicInbox/Mbox.pm       | 68 ++++++++++-------------------
 lib/PublicInbox/NNTP.pm       |  6 +--
 lib/PublicInbox/SearchView.pm |  3 +-
 lib/PublicInbox/View.pm       |  7 +--
 lib/PublicInbox/WWW.pm        |  4 +-
 lib/PublicInbox/WwwAttach.pm  |  5 +--
 t/feed.t                      | 44 ++++++-------------
 t/html_index.t                | 11 ++++-
 14 files changed, 119 insertions(+), 155 deletions(-)


^ permalink raw reply	[relevance 5%]

* [PATCH 2/3] MANIFEST: update (generate via "git ls-files")
  @ 2016-02-28  5:42  6% ` Eric Wong
  0 siblings, 0 replies; 6+ results
From: Eric Wong @ 2016-02-28  5:42 UTC (permalink / raw)
  To: meta

It's been a while...
---
 MANIFEST | 45 +++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 41 insertions(+), 4 deletions(-)

diff --git a/MANIFEST b/MANIFEST
index e11afc8..9718eed 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,5 +1,6 @@
 .gitignore
 COPYING
+Documentation/.gitignore
 Documentation/dc-dlvr-spam-flow.txt
 Documentation/design_notes.txt
 Documentation/design_www.txt
@@ -16,39 +17,75 @@ examples/README
 examples/apache2_cgi.conf
 examples/apache2_perl.conf
 examples/cgi-webrick.rb
+examples/cgit-commit-filter.lua
 examples/public-inbox-config
 examples/public-inbox.psgi
 lib/PublicInbox/Config.pm
+lib/PublicInbox/Daemon.pm
+lib/PublicInbox/ExtMsg.pm
 lib/PublicInbox/Feed.pm
 lib/PublicInbox/Filter.pm
 lib/PublicInbox/Git.pm
+lib/PublicInbox/GitHTTPBackend.pm
+lib/PublicInbox/HTTP.pm
 lib/PublicInbox/Hval.pm
+lib/PublicInbox/Listener.pm
 lib/PublicInbox/MDA.pm
-lib/PublicInbox/View.pm
+lib/PublicInbox/MID.pm
+lib/PublicInbox/Mbox.pm
+lib/PublicInbox/Msgmap.pm
+lib/PublicInbox/NNTP.pm
+lib/PublicInbox/NewsGroup.pm
+lib/PublicInbox/NewsWWW.pm
+lib/PublicInbox/ProcessPipe.pm
+lib/PublicInbox/Search.pm
+lib/PublicInbox/SearchIdx.pm
+lib/PublicInbox/SearchMsg.pm
+lib/PublicInbox/SearchView.pm
+lib/PublicInbox/Spawn.pm
+lib/PublicInbox/SpawnPP.pm
 lib/PublicInbox/Thread.pm
+lib/PublicInbox/View.pm
 lib/PublicInbox/WWW.pm
-public-inbox-learn
-public-inbox-mda
-public-inbox.cgi
 sa_config/Makefile
 sa_config/README
 sa_config/root/etc/spamassassin/public-inbox.pre
 sa_config/user/.spamassassin/user_prefs
+script/public-inbox-httpd
+script/public-inbox-index
+script/public-inbox-init
+script/public-inbox-learn
+script/public-inbox-mda
+script/public-inbox-nntpd
+script/public-inbox.cgi
 scripts/dc-dlvr
 scripts/dc-dlvr.pre
 scripts/edit-sa-prefs
 scripts/import_maildir
+scripts/import_slrnspool
 scripts/report-spam
 scripts/slrnspool2maildir
 t/cgi.t
+t/common.perl
 t/config.t
 t/fail-bin/spamc
 t/feed.t
 t/filter.t
+t/git.fast-import-data
+t/git.t
 t/html_index.t
+t/httpd-corner.psgi
+t/httpd-corner.t
+t/httpd.t
+t/init.t
 t/main-bin/spamc
 t/mda.t
+t/msgmap.t
+t/nntp.t
+t/nntpd.t
 t/plack.t
 t/precheck.t
+t/search.t
+t/spawn.t
 t/utf8.mbox
 t/view.t
-- 
EW


^ permalink raw reply related	[relevance 6%]

Results 1-6 of 6 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-02-28  5:42     [PATCH 1/3] httpd: allow running if ReverseProxy is missing Eric Wong
2016-02-28  5:42  6% ` [PATCH 2/3] MANIFEST: update (generate via "git ls-files") Eric Wong
2016-06-20  0:57  5% [PATCH 0/7] www: various feed/streaming related cleanups Eric Wong
2016-06-20  0:57  7% ` [PATCH 1/7] MANIFEST: update with recent changes Eric Wong
2022-11-28  5:30  5% [PATCH 00/95] clone: multi-inbox/repo support Eric Wong
2022-11-28  5:31  7% ` [PATCH 12/95] manifest: update module blurb + v5.12 Eric Wong
2023-09-09 12:01     [PATCH 0/8] NetBSD-related updates Eric Wong
2023-09-09 12:01     ` [PATCH 4/8] ci/profiles: rewrite in Perl Eric Wong
2023-09-09 21:14  7%   ` [SQUASH] manifest update Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).