Skip to content

Migrate to VCDK #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Migrate to VCDK #133

wants to merge 2 commits into from

Conversation

cartoush
Copy link

Refactoring of this VMOD so that it corresponds
to the schema described in https://git.sr.ht/~dridi/vcdk

@cartoush cartoush force-pushed the vcdk_migration branch 2 times, most recently from 1e027e8 to 67bd8f3 Compare April 14, 2025 15:46
@nigoroll
Copy link
Owner

⚠️ Email address

README.rst Outdated
.. NB: This file is machine generated, DO NOT EDIT!
..
.. Edit ./vmod_dynamic.vcc and run make instead
..
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed oob, please keep the README.rst for general project info.

[AC_MSG_WARN([extended resolver functions will not be available])
AM_CONDITIONAL([HAVE_GETDNS], [false])
AC_SUBST([VTC_TESTS], "$(cd $srcdir/src && echo tests/*.vtc tests/nogetdns/*.vtc)")])
AC_SUBST([VTC_TESTS], "$(cd $srcdir/src && echo vtc/*.vtc vtc/nogetdns/*.vtc)")])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i did not check): Please make sure that you test with and without getdns

-p vcl_path="$(abs_top_srcdir)/vcl:$(VARNISHAPI_VCLDIR)" \
-p vmod_path="$(abs_builddir)/.libs:$(vmoddir):$(VARNISHAPI_VMODDIR)"

TESTS = \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect this to require some conditional on whether or not getdns is available

@@ -100,8 +100,8 @@ static struct VSC_lck *lck_dir;

static unsigned loadcnt = 0;

static const struct gethdr_s HDR_REQ_HOST = { HDR_REQ, "\005Host:"};
static const struct gethdr_s HDR_BEREQ_HOST = { HDR_BEREQ, "\005Host:"};
static const struct gethdr_s HDR_REQ_HOST = { HDR_REQ, (void*)"\005Host:"};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually an adjustment required post VC 7.7, which is not related to the vcdk migration. I am going to address it separately.

@@ -63,6 +63,119 @@ and weight though DNS. See https://en.wikipedia.org/wiki/SRV_record
for a good basic explanation and `xdirector.service()`_ for
details.

Supported Operating Systems
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should move to a new INSTALL.rst

@cartoush cartoush force-pushed the vcdk_migration branch 2 times, most recently from f674325 to 8d488c4 Compare May 23, 2025 12:35
Thibaut Artis added 2 commits May 23, 2025 14:39
Refactoring of this VMOD so that it corresponds
to the schema described in https://git.sr.ht/~dridi/vcdk
Since VC 7.7, vmodtool.py generates a file that
must be taken into account in Makefile.am
https://varnish-cache.org/docs/trunk/whats-new/upgrading-7.7.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants