Skip to content

AuTest: Properly handle experimental plugins. (#6971)#7169

Merged
zwoop merged 1 commit intoapache:9.0.xfrom
bneradt:cherry_pick_build_experimental_plugins_6971
Sep 6, 2020
Merged

AuTest: Properly handle experimental plugins. (#6971)#7169
zwoop merged 1 commit intoapache:9.0.xfrom
bneradt:cherry_pick_build_experimental_plugins_6971

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Sep 4, 2020

This is a cherry-pick to 9.0.x with manually resolved merge conflicts for:
#6971


Susan observed a couple issues with certain configurations now that
we are building AuTest plugins via the Automake system:

  1. Without --enable-experimental-plugins and
    --enable-example-plugins: A couple tests used to build some
    experimental plugins by themselves with a copy-and-pasted version of the
    experimental plugin in the tools directory. This way the test would run
    regardless of whether the user configured their make with
    --experimental-plugins. That clearly won't work now that the standard
    installed plugins are built with Automake. To address this, I'm adding a
    skip check associated with these plugins.

  2. Susan also executed make install via sudo because she was
    installing in the root filesystem and needed root privilege. The
    PreparePlugin script copies down the plugins into the sandbox directory.
    For all the test plugins this is fine, but for the standard ATS plugins,
    this attempt to copy down upon a root sym link would fail with an EPERM.
    I'm addressing this by providing both a PrepareTestPlugin and
    PrepareInstalledPlugin in which the latter does not copy down the plugin
    .so file because it is already installed via make install.

(cherry picked from commit 7ef20c6)

Susan observed a couple issues with certain configurations now that
we are building AuTest plugins via the Automake system:

1. Without ` --enable-experimental-plugins` and
`--enable-example-plugins`: A couple tests used to build some
experimental plugins by themselves with a copy-and-pasted version of the
experimental plugin in the tools directory. This way the test would run
regardless of whether the user configured their make with
--experimental-plugins. That clearly won't work now that the standard
installed plugins are built with Automake. To address this, I'm adding a
skip check associated with these plugins.

2. Susan also executed `make install` via sudo because she was
installing in the root filesystem and needed root privilege. The
PreparePlugin script copies down the plugins into the sandbox directory.
For all the test plugins this is fine, but for the standard ATS plugins,
this attempt to copy down upon a root sym link would fail with an EPERM.
I'm addressing this by providing both a PrepareTestPlugin and
PrepareInstalledPlugin in which the latter does not copy down the plugin
`.so` file because it is already installed via `make install`.

(cherry picked from commit 7ef20c6)
@bneradt bneradt added the AuTest label Sep 4, 2020
@bneradt bneradt added this to the 9.0.0 milestone Sep 4, 2020
@bneradt bneradt self-assigned this Sep 4, 2020
@zwoop zwoop merged commit e114e9e into apache:9.0.x Sep 6, 2020
@bneradt bneradt added the Backport Marked for backport for an LTS patch release label Sep 22, 2020
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Jan 26, 2021
* asf/9.0.x:
  leaks in logs (apache#7172)
  AuTest: Reuse venv if it exists already (apache#7178)
  Emits log when OCSP fails to connect to server (apache#7183)
  Do not lose original inactivity timeout on disable (apache#7134)
  Fix apache#7164 Chaning Warning to Debug and creating a stat for inserting duplicates to pending dns (apache#7166)
  Removes references to non-existent function handle_conditional_headers (apache#7162)
  AuTest: Properly handle experimental plugins. (apache#6971) (apache#7169)
  Updated ChangeLog
@bneradt bneradt deleted the cherry_pick_build_experimental_plugins_6971 branch June 9, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AuTest Backport Marked for backport for an LTS patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants